• 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: NSUserDefaults and NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSUserDefaults and NSArray
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: mail.app plug-in API's
  • Next by Date: Copy/paste multiple table rows
  • Previous by thread: Re: NSUserDefaults and NSArray
  • Next by thread: Re: NSUserDefaults and NSArray
  • Index(es):
    • Date
    • Thread