• 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: invalid NSStrings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invalid NSStrings?


  • Subject: Re: invalid NSStrings?
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 23 Feb 2008 17:18:24 -0800


On Feb 23, 2008, at 5:15 PM, James Pengra wrote:

I have a lot of trouble with string variables becoming "invalid" according to their value in the Debugger. If I set a string variable like NSString *str = [NSString stringWithString:<some other string variable>] it seems OK initially but then when I try to use it later in the program it is invalid and crashes the program. Ususally even tho' the address for the string is the same as before.

See <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html#//apple_ref/doc/uid/20000994 >
and
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_5.html >


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >invalid NSStrings? (From: James Pengra <email@hidden>)

  • Prev by Date: invalid NSStrings?
  • Next by Date: trouble closing windows
  • Previous by thread: invalid NSStrings?
  • Next by thread: trouble closing windows
  • Index(es):
    • Date
    • Thread