• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Showing more than one entity in a tableview (Core Data)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Showing more than one entity in a tableview (Core Data)
      • From: "Sean McBride" <email@hidden>
References: 
 >Showing more than one entity in a tableview (Core Data) (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Default NSSavePanel filename selection not to include filename extension
  • Next by Date: Re: Editable PDFAnnotation
  • Previous by thread: Showing more than one entity in a tableview (Core Data)
  • Next by thread: Re: Showing more than one entity in a tableview (Core Data)
  • Index(es):
    • Date
    • Thread