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: Ken Thomases <email@hidden>
- Date: Fri, 3 Apr 2009 13:56:41 -0500
On Apr 3, 2009, at 1:27 PM, Nick Beadman wrote:
The only downside I see in using NSLog over CFShow is NSLog is in
Foundation, officially part of Cocoa.
That's on odd thing to say. CFShow is part of Core Foundation, not
Foundation, and thus is not part of Cocoa. NSLog on the other hand,
is part of Foundation and 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.
Neither CFShow nor NSLog requires AppKit nor NSApplicationLoad.
On Apr 2, 2009, at 10:15 pm, Peter N Lewis wrote:
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);
No, don't do that. If 's' happens to have any formatting code
sequences in it, the above will cause anything from bad output to a
crash.
Regards,
Ken
_______________________________________________
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