Re: Core Data: objectRegisteredForID: vs objectWithID: question / Cross store relationship problem
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