• 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: NEWBIE: double backslash in NSStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NEWBIE: double backslash in NSStrings


  • Subject: Re: NEWBIE: double backslash in NSStrings
  • From: ber <email@hidden>
  • Date: Sun, 18 Aug 2002 03:57:23 +0200

I'm seeing the double backslash in a table that's displaying an NSArray of NSStrings (as well as in the debugger.)

brian

On Sunday, August 18, 2002, at 03:51 AM, Mike Shields wrote:

If you are seeing what's in the string by NSLog'ing or in gdb, the output from those escapes the backslash. If you create the string that way, that's the string that's in there. It's just an artifact of printing it out that is causing the problem you're seeing.

Mike

On Saturday, August 17, 2002, at 07:42 PM, ber wrote:

If I have:

char foo[2];

foo[0] = 92; // backslash
foo[1] = 0;

[ NSString stringWithCString:foo] produces "\\" (two backslashes).
How to create an NSString with one backslash from foo?

Thanks,

brian
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NEWBIE: double backslash in NSStrings
      • From: Andrew Pinski <email@hidden>
References: 
 >Re: NEWBIE: double backslash in NSStrings (From: Mike Shields <email@hidden>)

  • Prev by Date: Re: NEWBIE: double backslash in NSStrings
  • Next by Date: Re: NEWBIE: double backslash in NSStrings
  • Previous by thread: Re: NEWBIE: double backslash in NSStrings
  • Next by thread: Re: NEWBIE: double backslash in NSStrings
  • Index(es):
    • Date
    • Thread