Re: NSManagedObjectContext and Persistent/temporary objects.
Re: NSManagedObjectContext and Persistent/temporary objects.
- Subject: Re: NSManagedObjectContext and Persistent/temporary objects.
- From: George Orthwein <email@hidden>
- Date: Sun, 3 Sep 2006 03:46:04 -0400
I haven't done this myself, but it sounds like an in-memory store
might work. See "Custom store types" here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdPersistentStores.html#//apple_ref/doc/uid/TP40002875-
DontLinkElementID_77
Since you are responsible for saving the objects and you want them
temporary, you can just fail to do any saving. :) However, if you
want to use relationships from the persistent objects, you'll run
into difficulties, as cross-store relationships are not supported.
You may be able to use a Fetched Property using the URIRepresentation
or objectID, but again I haven't done that before either.
Hope that helps,
George
_______________________________________________
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