Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO - Observing self from self



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >KVO - Observing self from self (From: Daniel Jalkut <email@hidden>)
 >Re: KVO - Observing self from self (From: Joakim Danielson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.