Re: Has the behavior of NSUserDefaults changed in Snow Leopard?
Re: Has the behavior of NSUserDefaults changed in Snow Leopard?
- Subject: Re: Has the behavior of NSUserDefaults changed in Snow Leopard?
- From: Gideon King <email@hidden>
- Date: Fri, 4 Sep 2009 13:00:49 +1000
It appears that this strange behavior must have been a side effect of
another bug in my code, which was affecting the xml parser. Sorry for
the erroneous post. G.
On 04/09/2009, at 11:37 AM, Gideon King wrote:
Hi, I have some code that was working fine in 10.5 and earlier, but
doesn't work now, and I can't see anything in the release notes
about it.
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *nsstr1 = [defaults stringForKey:@"NMCenterFont"];
NSString *nsstr2 = [defaults objectForKey:@"NMCenterFont"];
NSString *nsstr3 = [defaults valueForKey:@"NMCenterFont"];
Prior to Snow Leopard, all three would return the string from my
defaults. Now nsstr1 contains the value, and the other two are nil.
Can someone else confirm this change?
Thanks
Gideon
_______________________________________________
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