• 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: Using Core Data NSManagedObject subclasses outside of a managed object context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using Core Data NSManagedObject subclasses outside of a managed object context (From: Dieterich Lawson <email@hidden>)

  • Prev by Date: Re: Simple array controller master-detail binding problem
  • Next by Date: Re: Drawing over a transparent background
  • Previous by thread: Using Core Data NSManagedObject subclasses outside of a managed object context
  • Next by thread: Re: Using Core Data NSManagedObject subclasses outside of a managed object context
  • Index(es):
    • Date
    • Thread