• 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: NSDictionary setValue KVO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary setValue KVO


  • Subject: Re: NSDictionary setValue KVO
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 10 Oct 2010 14:51:35 -0700

On Sun, Oct 10, 2010 at 1:49 PM, Ken Thomases <email@hidden> wrote:
> Hate to tell you, but you stink at writing quick test programs. ;P
>
> Your invocation of -addObserver:... specified 0 for the options.  You have to specify NSKeyValueObservingOptionNew to get the new value and/or NSKeyValueObservingOptionOld to get the old value.  I modified your test program to specify both and got:
>
> 2010-10-10 15:48:39.970 Untitled2[47695:903] root.key1 changed string1 -> differentString

Okay, good. I thought something was up with my test program, thanks
for confirming it.

--Kyle Sluder
_______________________________________________

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

References: 
 >NSDictionary setValue KVO (From: Trygve Inda <email@hidden>)
 >Re: NSDictionary setValue KVO (From: Keary Suska <email@hidden>)
 >Re: NSDictionary setValue KVO (From: Ken Thomases <email@hidden>)
 >Re: NSDictionary setValue KVO (From: Kyle Sluder <email@hidden>)
 >Re: NSDictionary setValue KVO (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSDictionary setValue KVO
  • Next by Date: RE: NSDictionary allValues not mutable
  • Previous by thread: Re: NSDictionary setValue KVO
  • Next by thread: Re: NSDictionary setValue KVO
  • Index(es):
    • Date
    • Thread