• 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
Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console) (From: Nick Beadman <email@hidden>)
 >Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console) (From: Peter N Lewis <email@hidden>)
 >Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console) (From: Nick Beadman <email@hidden>)

  • Prev by Date: Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
  • Next by Date: Re: using object after being released. How to find which is ?
  • Previous by thread: Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
  • Next by thread: Re: CFShow truncated CFStrings in Leopard's Console.app (but not Xcode's debugger console)
  • Index(es):
    • Date
    • Thread