Re: Showing more than one entity in a tableview (Core Data)
Re: Showing more than one entity in a tableview (Core Data)
- Subject: Re: Showing more than one entity in a tableview (Core Data)
- From: "I. Savant" <email@hidden>
- Date: Wed, 7 Feb 2007 17:30:41 -0500
Make a generic entity called "Animal" with a -name attribute and
make "Dog" and "Cat" subentities of "Animal" (delete their -name
attributes of course). Use "Animal" as the entity for the array
controller.
--
I.S.
On Feb 7, 2007, at 4:57 PM, Sean McBride wrote:
Hi all,
I am just beginning with Core Data... Let's say I have two entities:
Dog and Cat. Both have a 'name' property. How can I setup a
tableview
to list the names of all dogs and cats?
Since they both have a 'name' property, I had hoped this would be
easy.
But it seems NSArrayController insists on having exactly one entity
name.
I've searched the docs and archives but not found an answer. Any
pointers would be most welcome, thanks.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden