• 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
Entities without an NSManagedObjectContext?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Entities without an NSManagedObjectContext?


  • Subject: Entities without an NSManagedObjectContext?
  • From: email@hidden
  • Date: Fri, 8 Jul 2005 22:09:02 -0700

I would like to manipulate arrays of my NSManagedObject subclass before selecting which ones I actually want to save to the NSManagedObjectContext - is this possible?

Specifically, I have a NSTableView that's bound to an NSArrayController that's bound to the NSManagedObjectContext. I have a second NSArrayController that I would like to load with objects myself - based on user input and several other computations. The user will select items from the second tableview and elect to insert them into the first tableview. But how do I create the objects to manipulate in the first place without them being in the NSManagedObjectContext and thus showing up in the first NSTableView?

Do I need two NSManagedObjectContexts? Is there a way to create objects of my NSManagedObject subclass without attaching them to the context?

Thanks,
Blake
_______________________________________________
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


  • Follow-Ups:
    • Re: Entities without an NSManagedObjectContext?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Getting all managed objects of given entity
  • Next by Date: Re: Documentation frustrations
  • Previous by thread: Re: Newbie: performSelector: withObject: afterDelay: inModes: question..
  • Next by thread: Re: Entities without an NSManagedObjectContext?
  • Index(es):
    • Date
    • Thread