Re: rewriting observed keyPath
Re: rewriting observed keyPath
- Subject: Re: rewriting observed keyPath
- From: Kyle Sluder <email@hidden>
- Date: Tue, 15 Feb 2011 11:27:34 -0800
On Tue, Feb 15, 2011 at 11:09 AM, Remco Poelstra <email@hidden> wrote:
> Thanks for your reply.
> The problem with this solution is that when I do a setValue:object
> forKeyPath:@"preset0.parameter", and @"preset0" is the current preset, than
> no KVO message is sent to observers observing the @"current" variant of the
> keyPath. That would only happen, if they used the actual
> @"current.parameters" keyPath.
> Maybe KVO doesn't support this at all, I'm just hope it will :)
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 Sluder
_______________________________________________
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