• 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: Not sure what's wrong with this code to using NSUserDefaults...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Isolate NSTextView from NSColorWell
  • Next by Date: Problems displaying Arabic in UITextView
  • Previous by thread: Re: Not sure what's wrong with this code to using NSUserDefaults...
  • Next by thread: Re: Not sure what's wrong with this code to using NSUserDefaults...
  • Index(es):
    • Date
    • Thread