• 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: Has the behavior of NSUserDefaults changed in Snow Leopard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Has the behavior of NSUserDefaults changed in Snow Leopard? (From: Gideon King <email@hidden>)

  • Prev by Date: Massive slowdown in NSArrayController selections in 10.6
  • Next by Date: Re: NSImage into a QTMovie Object
  • Previous by thread: Has the behavior of NSUserDefaults changed in Snow Leopard?
  • Next by thread: Static Library
  • Index(es):
    • Date
    • Thread