• 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: Core Data and Inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and Inheritance


  • Subject: Re: Core Data and Inheritance
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 28 Apr 2010 10:31:13 -0700

On Apr 28, 2010, at 05:27, Billy Flatman wrote:

> I have a situation where I have a parent entity "Animal" and inheriting entities "Fish", "Mammal".
> I need to be able to select the corresponding Fish from it's array controller by binding it with the selection from the Animal array controller.

Are you talking about having 2 array controllers -- an Animal array controller and a Fish array controller? If not, it's not clear what you mean by the words "select", "corresponding", "binding" and "selection". :)

> The problem is the index counts for Animal and Fish won't be the same if a Mammal is added.
>
> Is it possible to do this using bindings in interface builder?

The answer is probably "no". The entity inheritance mechanism isn't really designed for this purpose. If you want to (actually or in effect) apply a filter to an array controller, you'll need an actual "animalType" property that you can test._______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Core Data and Inheritance (From: Billy Flatman <email@hidden>)

  • Prev by Date: Re: Cocoa Newbie & MySQL
  • Next by Date: Re: Cocoa Newbie & MySQL
  • Previous by thread: Core Data and Inheritance
  • Next by thread: Woes with an NSBox
  • Index(es):
    • Date
    • Thread