• 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: Parent entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parent entities


  • Subject: Re: Parent entities
  • From: Michael McCracken <email@hidden>
  • Date: Thu, 23 Jun 2005 18:23:45 -0700

On 6/23/05, Dave Hayden <email@hidden> wrote:
> First, is there a CoreData mailing list where I should be posting
> this instead? I saw nothing at lists.apple.com..
>
> I can't find anything useful in the documentation about parent
> entities, only that you can set them in the object modeller, and..
> well, yeah.
>
> I'm guessing that the child entity inherits its parent entity's
> properties; however, I don't get these in the predicate builder when
> I target the child entity. Setting and getting in code seems to work
> as I expect, though. Is this an XCode bug or am I not grasping
> something here?
>
> Is there a way to check the entity in a fetched property? For
> example, if I have an entity with a to-many relationship to "Fruit"
> types and "Apple" is a child entity, can I sort out which items in
> the relationship are Apples?


I think you can do this with a predicate like this:
entity.name == "Apple".
In my experience, managed-object instances of child entities
have the child entity's NSEntityDescription.

-mike

--
Michael McCracken
UCSD CSE PhD Student
San Diego Supercomputer Center
http://www.cse.ucsd.edu/~mmccrack/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Parent entities (From: Dave Hayden <email@hidden>)

  • Prev by Date: Re: NSTabView problem under Tiger
  • Next by Date: Why isn't my app showing up in launched applications
  • Previous by thread: Parent entities
  • Next by thread: Re: Parent entities
  • Index(es):
    • Date
    • Thread