Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-25 Thread Adam Younce
Have you called [[NSUserDefaults standardUserDefaults] registerDefaults:dictionaryObject] prior to any calls to setObject (and friends)? -- Adam Younce ayou...@ripcord.net On Jun 24, 2010, at 10:10 PM, cocoa-dev-requ...@lists.apple.com wrote: > On Jun 23, 2010, at 5:11 PM, Patrick William Wal

Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-24 Thread Greg Parker
On Jun 24, 2010, at 2:40 PM, Jens Alfke wrote: > On Jun 23, 2010, at 5:11 PM, Patrick William Walker wrote: >> NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; >> >> [prefs setObject: @"120" forKey: @"Length"]; >> >> [prefs synchronize]; >> >> >> When the program is run

Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-24 Thread Jens Alfke
On Jun 23, 2010, at 5:11 PM, Patrick William Walker wrote: > 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

Re: Not sure what's wrong with this code to using NSUserDefaults...

2010-06-24 Thread Matt Neuburg
On Wed, 23 Jun 2010 21:11:40 -0300, Patrick William Walker 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, no

Not sure what's wrong with this code to using NSUserDefaults...

2010-06-23 Thread Patrick William Walker
... 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. Nothing on the console log s