Re: Not sure what's wrong with this code to using NSUserDefaults...
Re: Not sure what's wrong with this code to using NSUserDefaults...
- Subject: Re: Not sure what's wrong with this code to using NSUserDefaults...
- From: Matt Neuburg <email@hidden>
- Date: Thu, 24 Jun 2010 08:42:45 -0700
- Thread-topic: Not sure what's wrong with this code to using NSUserDefaults...
On Wed, 23 Jun 2010 21:11:40 -0300, Patrick William Walker
<email@hidden> said:
>... beyond me but here it is.
>
>NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
>
>[prefs setObject: @"120" forKey: @"Length"];
>
>[prefs synchronize];
>
>
>When the program is run in the iPhone simulator (v3.2, not using 4.0 yet), it
just dies.
These are irreproducible results. If you just copy and paste your code into
the applicationDidFinishLaunching method of a completely new project, it
works fine. So clearly something else is going on - something you are not
mentioning. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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