• 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
NSString and special characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString and special characters


  • Subject: NSString and special characters
  • From: "Vladimir Sokolov" <email@hidden>
  • Date: Fri, 22 Aug 2008 10:00:57 +0200

Hello All,

I am working on a command line tool. I use
NSArray *params = [[NSProcessInfo processInfo] arguments]
to get a list of command line parameters.
Then I use
  NSString *param1 = [params objectAtIndex:1];
to get it.

But when I pass for example >...myapplication test$test
param1 got "testest" instead of  ""test$test"

It means as I understand that $ is interpreted as special character.

So my question is how to pass a parameter with $ inside?
And are there any other special characters which are interpreted as special
one?

Thanks,
Vlad
_______________________________________________

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: NSString and special characters
      • From: Bill Bumgarner <email@hidden>
    • Re: NSString and special characters
      • From: Michael Dautermann <email@hidden>
  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Re: NSString and special characters
  • Previous by thread: Re: Displaying time
  • Next by thread: Re: NSString and special characters
  • Index(es):
    • Date
    • Thread