On 2010 Jan 21, at 04:02, Quincey Morris wrote:

> The other issue that needs care in regard to both your questions is undo. 
> When setters do a lot of work, you need to be careful about what happens at 
> undo or redo time.

Quincey gives good advice here as usual.  In particular, the undo invocations 
registered by Core Data will not re-invoke your setters.  They just change the 
model.  So it's OK if your custom setters modify other (dependent) properties 
in your data model, because these will be redone by their own undo invocations. 
 But don't put, for example, dependent changes to your user interface in your 
custom setters.  Add observers and use KVO for these.

_______________________________________________

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

Reply via email to