Re: Re: KVO question
Re: Re: KVO question
- Subject: Re: Re: KVO question
- From: "Peter Boctor" <email@hidden>
- Date: Tue, 23 May 2006 07:58:45 -0700
On 5/23/06, George Orthwein <email@hidden> wrote:
On May 22, 2006, at 8:29 PM, Peter Boctor wrote:
> How can the observeValueForKeyPath implementation determine
> what actually changed, "current" or "current.bar"?
Isn't this what context is for?
Alternatively, can't you just do an if/then in observeValueForKeyPath:
if ([keyPath isEqualToString:@"current"]) ...
...
else if ([keyPath isEqualToString:@"current.bar"]) ...
I'd like to know when a "current.bar" notification occurred because bar
actually changed versus when it occurred because "current" changed. Neither
the context nor the keyPath can indicate this.
-peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden