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

invalid NSStrings?


  • Subject: invalid NSStrings?
  • From: James Pengra <email@hidden>
  • Date: Sat, 23 Feb 2008 17:15:04 -0800

Folks,
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.
Also, I have a simple class containing 3 string variables and an integer. Then I instantiate different members of this class and save their addresses in an NSMutableArray. When I call up these objects and retrieve their string variables, it works the first time I do it, but a second attempt later to call up these class members and read the string variables always fails, because the strings are invalid. Retrieving the integer always works OK.


    . Thanks for any help

    Using Xcode 2.4 with OS 4.11.

  	--Jim

_______________________________________________

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


  • Follow-Ups:
    • Re: invalid NSStrings?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Private Methods
  • Next by Date: Re: invalid NSStrings?
  • Previous by thread: Trying to contact Cathy Shive
  • Next by thread: Re: invalid NSStrings?
  • Index(es):
    • Date
    • Thread