Re: KVO - Observing self from self
Re: KVO - Observing self from self
- Subject: Re: KVO - Observing self from self
- From: Daniel Jalkut <email@hidden>
- Date: Sun, 2 Jul 2006 20:06:29 -0400
Hi Joakim - thanks for replying. The problem in this case is I'm not
observing a "first-level" key on self. I'm attempting observe a *key
path* through an instance variable.
It would be great if there was a magic Apple "setKeyPath:..." variant
of the triggering mechanism. In fact, I think I might have to
suggest such an enhancement via Radar. If I could say something like
"[self setKeyPath:@"myVar.otherVar"
triggerChangeNotificationsForDependentKey:@"booyeah"], all would be
well.
As it is though, I guess I'm stuck manually observing the objects I
care about.
Daniel
On Jul 2, 2006, at 5:25 AM, Joakim Danielson wrote:
Why don't you use setKeys:triggerChangeNotificationsForDependentKey: ?
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueObserving/index.html#//apple_ref/doc/uid/10000177i
Joakim
_______________________________________________
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