• 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
Safely cancelling modifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safely cancelling modifications


  • Subject: Safely cancelling modifications
  • From: Eric Morand <email@hidden>
  • Date: Thu, 23 Nov 2006 09:03:48 +0100

Hi list !

I'd like my users to be able to cancel the modifications done on a managed object. I have an editor window, with a 'OK' button and a 'Cancel' button (just like the iTunes one). The text fields in the window are bound to the managed object attributes. So, when the user changes a value in a field, the managed object is automatically modified with the entered value.

What I want is to allow the user to cancel every modification done since the editor window has been opened when he clicks on Cancel. I've found an instance method called "rollback" in NSManagedObject but the documentations say that it restores everyhting to the last commited values. What worries me is the word "everything" ! I don't want every modifications done by my user to the database contents to be cancelled !

Is there a safe way for doing this ? I suppose there is something I'm missing : this feature can be found in nearly every single core data application.


Thanks by advance,


Eric. _______________________________________________

Cocoa-dev mailing list      (email@hidden)

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: Safely cancelling modifications
      • From: "R. Matthew Emerson" <email@hidden>
  • Prev by Date: Re: How to set the color of a string on a NSButton?
  • Next by Date: Can't get my application to see my Help Folder - Thank you
  • Previous by thread: Re: Re: How to set the color of a string on a NSButton?
  • Next by thread: Re: Safely cancelling modifications
  • Index(es):
    • Date
    • Thread