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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to