• 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
MutableArrays losing its contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MutableArrays losing its contents?


  • Subject: MutableArrays losing its contents?
  • From: Lee Morgan <email@hidden>
  • Date: Mon, 1 Dec 2003 02:08:36 -0500

NSMutableArray not keeping its contents?

I have a NSMutableArray that keeps a list of NSURL. The problem I have is that even though the array is in my class's header its contents are not retained from the method that they are added from.
What I'm trying to say is that I have a open file method that gets the url and adds it to the array then another method that is setup to get the url from the array and open it.
The problem I'm having is that even if I retain the array and the objects within it it doesn't exists when the second method tries to access it. I know its getting added to the array because I can use it from the array while it is in the first method (the one that gets the URL and puts it into the array).

Any help?

Lee Morgan
_______________________________________________
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: MutableArrays losing its contents?
      • From: "M. Uli Kusterer" <email@hidden>
  • Next by Date: Re: MutableArrays losing its contents?
  • Next by thread: Re: MutableArrays losing its contents?
  • Index(es):
    • Date
    • Thread