NSUserDefault at first startup
NSUserDefault at first startup
- Subject: NSUserDefault at first startup
- From: David Dauer <email@hidden>
- Date: Sat, 04 Oct 2003 21:18:35 +0200
Hello all
I have a NSMutableArray *array; and assign this array a dictionary.
NSUserDefaults *defaults;
defaults = [NSUserDefaults standardUserDefaults];
array = [[defaults objectForKey:@"key"] retain];
But when the user start my app the first time, the array is (NULL) and it's
not possible to set any dict or object to the array.
How to fix that?
Thanks
David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.