Re: NSMutableArray becomes NSString?
Re: NSMutableArray becomes NSString?
- Subject: Re: NSMutableArray becomes NSString?
- From: James Bucanek <email@hidden>
- Date: Fri, 13 Apr 2007 08:11:10 -0700
Timothy Collett wrote on Friday, April 13, 2007:
>I am attempting to use an NSMutableArray, and while debugging, I can
>observe it get initialized, and have 2 objects added to it...and
>then, some time between there and when I need to access it (still
>within the initialization phase of my program), it turns into an
>NSString. The address appears to be the same, but the type has
>inexplicably changed.
My guess is that the array is getting released and the memory is being reused by a newly allocated string object.
Turning on NSZombies should confirm this: <http://developer.apple.com/technotes/tn2004/tn2124.html>
--
James Bucanek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden