discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog and " character


From: Wolfgang Lux
Subject: Re: NSLog and " character
Date: Wed, 18 Jan 2012 17:01:29 +0100

Riccardo Mottola wrote:

> The code snippet is:
> 
>      NSLog(@"2 %@, remaining: %@", field, [[scanner string] 
> substringFromIndex: [scanner scanLocation]]);
>      [scanner scanString:qualifier intoString:&token];
>      if (token != nil)
>        {
>          NSLog(@"token: %@");
> 
> now I expect token to be the qualifier ("). NSLog however dies. Why?

I guess you should take a break now and then add an argument after the format 
to the NSLog call :-)

Wolfgang




reply via email to

[Prev in Thread] Current Thread [Next in Thread]