Re: MutableArrays losing its contents?
Re: MutableArrays losing its contents?
- Subject: Re: MutableArrays losing its contents?
- From: Clark Cox <email@hidden>
- Date: Mon, 1 Dec 2003 14:16:26 -0500
On Dec 01, 2003, at 12:43, Lee Morgan wrote:
>
On Dec 1, 2003, at 5:54 AM, email@hidden wrote:
>
>
> Several options how I would produce such weird behavior:
>
>
>
> a) You're somewhere overwriting the pointer to your array with a new
>
> one to an empty array. The best indicator for this is if [yourArray
>
> count] is 0.
>
>
This is I guess what is happening because when I NSLog then array's
>
contents this is what I get...
>
>
In the import method...
>
<CFArray 0x33e170 [0xa01900e0]>{type = mutable-small, count = 1,
>
values = (0 : <CFURL 0x3f6f30 [0xa01900e0]>{type = 0, string =
>
/Users/leemorgan/Movies/ Tech/G5 Intro.mov, base = (null)})}
>
>
When used later...
>
<CFArray 0x301650 [0xa01900e0]>{type = mutable-small, count = 0,
>
values = ()}
Well, there you go, that's a different array (0x301650 vs. 0x33e170).
Somewhere in your code, you're assigning a new array to your pointer.
--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.