• 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
Canceling the insertion of a managed object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Canceling the insertion of a managed object


  • Subject: Canceling the insertion of a managed object
  • From: Eric Morand <email@hidden>
  • Date: Wed, 14 Jun 2006 13:46:14 +0200

Hi List.

I'm currently wondering what is the best way to "cancel" the insertion of a newly created managed object in the context.

Let's say my user click on a "New thing" button that create and insert a newly allocated instance of Thing (a managed object subclass). He then decides to cancel the operation (because he doesn't want to create a new thing anymore). So he clicks on the "Cancel" button.

How do I cancel the insertion ? I don't want this New/Cancel process to dirty the database (in other words, I don't want to delete it from the context).

Should i use the undo manager ?


Thanks for your help,


Eric. _______________________________________________ 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
  • Prev by Date: Re: Drawing text on top of a progress bar
  • Next by Date: Re: Embedding a color item in an NSTableView
  • Previous by thread: Re: Populating a NSMenu with an heirachical NSXMLDocument
  • Next by thread: Animating NSImageCells
  • Index(es):
    • Date
    • Thread