• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: KVO - Observing self from self
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >KVO - Observing self from self (From: Daniel Jalkut <email@hidden>)
 >Re: KVO - Observing self from self (From: Joakim Danielson <email@hidden>)

  • Prev by Date: Re: working with NSDecimalNumber and NSNumber
  • Next by Date: Oops: Was: Re: working with NSDecimalNumber and NSNumber
  • Previous by thread: Re: KVO - Observing self from self
  • Next by thread: Re: I need help on simple Sketch app and Cocoa bindings
  • Index(es):
    • Date
    • Thread