Has the behavior of NSUserDefaults changed in Snow Leopard?
Has the behavior of NSUserDefaults changed in Snow Leopard?
- Subject: Has the behavior of NSUserDefaults changed in Snow Leopard?
- From: Gideon King <email@hidden>
- Date: Fri, 4 Sep 2009 11:37:23 +1000
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