Re: Bindings & Reverting Properties
Re: Bindings & Reverting Properties
- Subject: Re: Bindings & Reverting Properties
- From: Dave Keck <email@hidden>
- Date: Fri, 21 Aug 2009 21:14:24 -1000
> What led you to believe you needed to call the setter recursively? All you
> need is:
The only reason I did that was to show that the correct KVO
notifications would be invoked by reverting the happy property from
within the setter. It was a gross oversimplification, and I'm sorry.
:)
I realize that KVO notifications are sent automatically, and
implicitly surround the -setHappy: setter. But to illustrate my point,
I used the setter from within the setter to show that even with two
more (implicit) -willChange/-didChange notifications, the UI does not
reflect the model property if the model property is 'reverted' from
within the setter.
_______________________________________________
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