Re: Using Core Data NSManagedObject subclasses outside of a managed object context
Re: Using Core Data NSManagedObject subclasses outside of a managed object context
- Subject: Re: Using Core Data NSManagedObject subclasses outside of a managed object context
- From: Jerry Krinock <email@hidden>
- Date: Sun, 23 Aug 2009 21:30:54 -0700
On 2009 Aug 23, at 17:32, Dieterich Lawson wrote:
Does anyone know of a way to modify the objects so that I can use them
wherever I want without having to insert them into a managed object
context?
No, you can't to that. But you're asking the wrong question. The
problem is not the managed objects, it's the managed object context
that you're inserting them into. What you apparently haven't realized
yet is that you can create your own managed object contexts. Typical
Core Data applications have several of them. Create a managed object
context with an in-memory (non-persistent) store, and insert your
"transient" objects into it.
All this is explained in the Core Data Programming Guide.
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/cdProgrammingGuide.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden