Re: NSUndoManager vs @synthesize

2009-09-22 Thread Benjamin Rister

Pierre Bernard wrote:


Do I still need to write my own accessors in order to perform
NSUndoManager registration?

Could my model objects observe themselves and register undoable
changes in observeValueForKeyPath:ofObject:change:context:  ?

How does CoreData go about registering changes with the undo manager?
Is this done by @synthesize setter or by the NSManagedObjectContext
watching the model objects?


Is it bad etiquette to do a ping on somebody else’s post? =)

I too would really like to hear what the current best practices are  
for our brave new world of declared properties and synthesized  
accessors.  Does anybody have any experience/suggestions they can share?


Best,
Benjamin Rister___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


NSUndoManager vs @synthesize

2009-08-03 Thread Houdah - ML Pierre Bernard

Hi!

Do I still need to write my own accessors in order to perform  
NSUndoManager registration?


Could my model objects observe themselves and register undoable  
changes in observeValueForKeyPath:ofObject:change:context:  ?


How does CoreData go about registering changes with the undo manager?  
Is this done by @synthesize setter or by the NSManagedObjectContext  
watching the model objects?


Pierre
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com