• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO question


  • Subject: Re: KVO question
  • From: George Orthwein <email@hidden>
  • Date: Tue, 23 May 2006 10:16:56 -0400

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"]) ...

George

_______________________________________________
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


  • Follow-Ups:
    • Re: Re: KVO question
      • From: "Peter Boctor" <email@hidden>
References: 
 >KVO question (From: "Peter Boctor" <email@hidden>)

  • Prev by Date: generating the event
  • Next by Date: Re: Multi-line NSTokenField
  • Previous by thread: Re: Re: Re: KVO question
  • Next by thread: Re: Re: KVO question
  • Index(es):
    • Date
    • Thread