• 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: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem


  • Subject: Re: Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem
  • From: Jim Correia <email@hidden>
  • Date: Mon, 27 Mar 2006 21:32:06 -0500

On Mar 27, 2006, at 10:58 AM, Guillaume Rager wrote:

Just a small question about NSManagedObjectID.

[...]

i'm using managedObjectIDForURIRepresentation then objectWithID: but this method *ALWAYS* returns an object (with no underlying datas because the object has been deleted).

The docs point out that a fault may be returned. You can use a fetch request to resolve the fault. The CoreRecipes sample code does this when it in +[RecipeUtilitiies recipeForApplicationURL:inContext:].


Jim
_______________________________________________
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: 
 >Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem (From: Guillaume Rager <email@hidden>)

  • Prev by Date: Re: Code generation from WSDL?
  • Next by Date: Re: About AsyncSocket class
  • Previous by thread: Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem
  • Next by thread: Ideal Key Attribute for Cross-Store Fetched Objects
  • Index(es):
    • Date
    • Thread