Re: NSDictionary setValue KVO
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