Re: NSUserDefaults and NSArray
Re: NSUserDefaults and NSArray
- Subject: Re: NSUserDefaults and NSArray
- From: j o a r <email@hidden>
- Date: Fri, 13 Sep 2002 15:47:21 +0200
Have you verified that you actually find anything in user defaults?
Something like this:
- (void) readMyArray
{
NSArray * myArray = [[NSUserDefaults standardUserDefaults]
objectForKey: @"MyArray"];
if (myArray != nil) {
NSLog(@"Found %d entries in user defaults", [myArray count]);
} else {
NSLog(@"Nothing stored in user defaults");
}
}
j o a r
On Friday, Sep 13, 2002, at 15:21 Europe/Stockholm,
email@hidden wrote:
Why _myList is nil!!
_______________________________________________
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.