Re: Core Data: undo and non-object attribute
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