Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
- Subject: Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
- From: Nick Beadman <email@hidden>
- Date: Fri, 3 Apr 2009 11:27:01 -0700
Peter,
How interesting. Did you file a bug? If so can you let me know the
radar number so I can reference it from mine.
The only downside I see in using NSLog over CFShow is NSLog is in
Foundation, officially part of Cocoa. I think as it is part of
Foundation then it is safe to use without calling NSApplicationLoad()
and am having success without doing so.
I also wonder what the best way is to redirect NSLog to log to a file
in addition to the console. The documentation talks about doing this
but it isn't clear how this would be done.
Nick
On Apr 2, 2009, at 10:15 pm, Peter N Lewis wrote:
On 03/04/2009, at 2:00 , Nick Beadman wrote:
(three lines, not so good).
Really annoying, isn't it?
Thankfully, it is easily solved - NSLog does not have the same
problem, so just change
CFShow( s )
to
NSLog( @"%@", (NSString*)s );
or just:
NSLog((NSString*)s);
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden