• 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: NSMutableArray becomes NSString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSMutableArray becomes NSString? [SOLVED]
      • From: Timothy Collett <email@hidden>
References: 
 >NSMutableArray becomes NSString? (From: Timothy Collett <email@hidden>)

  • Prev by Date: Re: NSMutableArray becomes NSString?
  • Next by Date: Re: NSMutableArray becomes NSString? [SOLVED]
  • Previous by thread: Re: NSMutableArray becomes NSString?
  • Next by thread: Re: NSMutableArray becomes NSString? [SOLVED]
  • Index(es):
    • Date
    • Thread