This is quite helpful, Quincey, but one thing you wrote surprises me:

If you have a simple 'int' property backed by a single 'int' instance variable, changing the variable directly in your class implementation will not generate any KVO notifications. Changing the *property* -- which in that case means calling the setter method -- does generate KVO notifications. Of course, the setter implementation changes the backing variable.


Is that true, even if I write my own setter method (without willChange/ didChange)? If so, where is the notification coming from?

-Dave
_______________________________________________

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