Re: NSUserDefaults and NSArray
Re: NSUserDefaults and NSArray
- Subject: Re: NSUserDefaults and NSArray
- From: email@hidden
- Date: Fri, 13 Sep 2002 17:21:13 +0200
>
-- Messaggio originale --
>
Date: Fri, 13 Sep 2002 15:47:21 +0200
I'm verifing with the debugger and the instance is valid contains 2 objects,
is OK!!
For about 1 seconds the instance is valid and the tableview showing it correctly,
after the data disappear and the array is equal 0x0 (testing with the debugger).
I never release the array in any part of the my controller class
>
>
>
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.