• 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 fetch returns wrong entities.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data fetch returns wrong entities.


  • Subject: Re: Core Data fetch returns wrong entities.
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 5 Mar 2006 13:16:43 -0800

On Mar 5, 2006, at 5:10 AM, David Burnett wrote:

The NSArray contains a mix of all the Genome and XForm entities
in the context.

It sounds like your XForm entity is a subentity of your Genome entity.

Also, it's important to be precise with terminology: You aren't getting entities back from a fetch, you're getting instances of entities. Think of an entity as similar to a class.

a) I can find no examples or description of how to create and configure
a managed object without adding it to the context.I would have thought there would be a mention is the doc's in the Manipulating Relationships
chapter of the Relationships article of the Core Data Programming
Guide if it was not the proper code to use.

Managed objects must be inserted in a (not "the") managed object context before they are manipulated. A managed object context is intimately involved in the life cycle of a managed object.


  -- Chris

_______________________________________________
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


  • Follow-Ups:
    • Re: Core Data fetch returns wrong entities.
      • From: David Burnett <email@hidden>
References: 
 >Core Data fetch returns wrong entities. (From: David Burnett <email@hidden>)

  • Prev by Date: Re: problem with subclassing a cluster class
  • Next by Date: Re: Accessing CoreData Sqlite db from outside Cocoa app
  • Previous by thread: Re: Core Data fetch returns wrong entities.
  • Next by thread: Re: Core Data fetch returns wrong entities.
  • Index(es):
    • Date
    • Thread