I am working with two types of entities: Person objects and a Department objects. The Person object has the properties last name, first name, department name and phone number. The Department object has the properties department name and phone number.
I am able to use NSFetchedResultsControllers to retrieve and sort the the Person and Department objects. How can I combine these results into a single array keyed on the last and first names for the Person objects and on the department name for the Department objects, like this:
Accounting 5-5544
Almond, Betty Accounting 5-5544
Almond, Robert Shipping 5-4345
Brown, John Building Maintenance 5-5566
Building Maintenance 5-5566 ...
PersonandDepartmentobjects?