• 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: Creating temporary NSManagedObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating temporary NSManagedObjects


  • Subject: Re: Creating temporary NSManagedObjects
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 26 Apr 2010 10:08:16 -0700

On Apr 26, 2010, at 01:43, vincent habchi wrote:

> I need to create a short-lived NSManagedObject; ideally, I'd want it not to be inserted in the Core Data underlying framework, because I need it only during the display of an auxiliary window, and I don't want it saved anyway. I've tried a simple alloc, an alloc and init, but to no avail: It seems to create only the proxy object. Is there a way to do that?

Notwithstanding the discussion in this thread so far, I don't quite understand why you wouldn't do this the easy way: create a NSManagedObject in your managed context, and delete it when you're done with it.

The documentation explicitly describes the managed context as a "scratch pad", where objects can come and go as you need them.


_______________________________________________

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

  • Follow-Ups:
    • Re: Creating temporary NSManagedObjects
      • From: vincent habchi <email@hidden>
    • Re: Creating temporary NSManagedObjects
      • From: Joanna Carter <email@hidden>
References: 
 >Creating temporary NSManagedObjects (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: [iPhone] File coping application
  • Next by Date: Re: Changing folder attributes
  • Previous by thread: Re: Creating temporary NSManagedObjects
  • Next by thread: Re: Creating temporary NSManagedObjects
  • Index(es):
    • Date
    • Thread