Re: NSString and special characters

2008-08-22 Thread Bill Bumgarner
On Aug 22, 2008, at 7:54 AM, Joeles Baker wrote: Just read through the book. I really wonder, what the author of the foreword (obviously an apple employee) thought, when Mac OS X was announced :-) Is this really true? Is Unix "defective by design" ? :-) Amazingly powerful tool, easy to remov

Re: NSString and special characters

2008-08-22 Thread Dave Dribin
On Aug 22, 2008, at 3:39 AM, Bill Bumgarner wrote: Have you read this book? http://tinyurl.com/6kxxgc And it's even available online, now: -Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSString and special characters

2008-08-22 Thread Jason Coco
On Aug 22, 2008, at 05:26 , Vladimir Sokolov wrote: 2008/8/22, Bill Bumgarner <[EMAIL PROTECTED]>: On Aug 22, 2008, at 1:00 AM, Vladimir Sokolov wrote: Hello All, I am working on a command line tool. I use NSArray *params = [[NSProcessInfo processInfo] arguments] to get a list of command l

Re: NSString and special characters

2008-08-22 Thread Vladimir Sokolov
2008/8/22, Bill Bumgarner <[EMAIL PROTECTED]>: > > On Aug 22, 2008, at 1:00 AM, Vladimir Sokolov wrote: > >> 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 >> NSStri

Re: NSString and special characters

2008-08-22 Thread Bill Bumgarner
On Aug 22, 2008, at 1:00 AM, Vladimir Sokolov wrote: 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

Re: NSString and special characters

2008-08-22 Thread Michael Dautermann
On Aug 22, 2008, at 4:00 AM, Vladimir Sokolov wrote: 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. $ usually expands (or allows access to) a variable in a shell. Try

NSString and special characters

2008-08-22 Thread Vladimir Sokolov
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 "testes