Re: rewriting observed keyPath
Re: rewriting observed keyPath
- Subject: Re: rewriting observed keyPath
- From: Quincey Morris <email@hidden>
- Date: Tue, 15 Feb 2011 14:59:17 -0800
On Feb 15, 2011, at 11:27, Kyle Sluder wrote:
> As long as -current and -preset0 return the same object, and that
> object is KVO-compliant for @"parameters", then observing
> @"current.parameters" and @"preset0.parameters" are equivalent.
Kyle beat me to the punch on this part of the answer, but there's one additional point -- the preferences controller *also* needs to be KVO compliant with "current", otherwise changing "current" will leave observers of "current.parameters" out of date. The OP's originally posted attempt at an implementation of the "current" property wasn't KVO compliant, but the version I suggested was.
_______________________________________________
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