• 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: I get called on change, but then can't get the object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO: I get called on change, but then can't get the object


  • Subject: Re: KVO: I get called on change, but then can't get the object
  • From: Rick Mann <email@hidden>
  • Date: Sat, 31 May 2008 00:48:36 -0700


On May 31, 2008, at 00:32:30, j o a r wrote:

Search for "NSKeyValueObservingOptionNew" here:


Already using that:

	[mItemsController addObserver: self
			forKeyPath: @"selection.number"
			options: (NSKeyValueObservingOptionNew)
			context: NULL];


What happens if you call "-valueForKeyPath:" instead of "- valueForKey:"?

Argh! That works. I'm so used to the Java version that doesn't distinguish between a key and a path. Thanks!


--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: KVO: I get called on change, but then can't get the object
      • From: "Hamish Allan" <email@hidden>
References: 
 >KVO: I get called on change, but then can't get the object (From: Rick Mann <email@hidden>)
 >Re: KVO: I get called on change, but then can't get the object (From: j o a r <email@hidden>)

  • Prev by Date: Re: super respondsToSelector
  • Next by Date: Defaulting new entity fields to be same as current selection?
  • Previous by thread: Re: KVO: I get called on change, but then can't get the object
  • Next by thread: Re: KVO: I get called on change, but then can't get the object
  • Index(es):
    • Date
    • Thread