• 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: Core Data: undo and non-object attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: undo and non-object attribute


  • Subject: Re: Core Data: undo and non-object attribute
  • From: Jakob Olesen <email@hidden>
  • Date: Sat, 14 Oct 2006 21:38:18 +0200


On 14/10/2006, at 20.53, Matteo Rossi wrote:

Then I created a simple interface by option-dragging my entity in my doc window in IB.I can save and undo/redo insert/delete operations but I can't undo a value editing. The undo is available after an edit but the value stays the same. What's wrong with my code ?

Undo/redo is operating on the primitive values stored by the NSManagedObject. You never set the primitive values for the x and y keys, so they are always nil as far as the undo manager is concerned.


What exactly are you trying to achieve? Did you read the documentation about ivars in NSManagedObject?

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW5


_______________________________________________ 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: Core Data: undo and non-object attribute
      • From: Matteo Rossi <email@hidden>
References: 
 >Core Data: undo and non-object attribute (From: Matteo Rossi <email@hidden>)

  • Prev by Date: Re: Checking for internet connection?
  • Next by Date: Re: Localising Preference Panes
  • Previous by thread: Core Data: undo and non-object attribute
  • Next by thread: Re: Core Data: undo and non-object attribute
  • Index(es):
    • Date
    • Thread