Re: Correct Bindings Practices
Re: Correct Bindings Practices
- Subject: Re: Correct Bindings Practices
- From: Jerry Krinock <email@hidden>
- Date: Fri, 22 Jan 2010 07:00:30 -0800
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 (email@hidden)
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:
This email sent to email@hidden