Re: Question about notifying KVO observers of changes to a property.
Re: Question about notifying KVO observers of changes to a property.
- Subject: Re: Question about notifying KVO observers of changes to a property.
- From: Seth Willits <email@hidden>
- Date: Thu, 21 May 2009 18:38:55 -0700
On May 21, 2009, at 5:43 PM, Morales Vivó Óscar wrote:
Good point. The problem I'm having is that I don't know when to call
the "willChange…" method, only that sometimes I need to call the
"didChange…" one.
It's pretty straight forward.
[blah willChange...];
the_change
[blah didChange...];
You shouldn't be calling willChange and then trigger 5 million lines
of code and hope somewhere along the lines it calls didChange. And you
shouldn't call didChange without calling willChange.
What's the confusing part about that?
--
Seth Willits
_______________________________________________
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