Re: CFShow in Cocoa
Re: CFShow in Cocoa
- Subject: Re: CFShow in Cocoa
- From: Jim Correia <email@hidden>
- Date: Wed, 12 May 2004 15:46:55 -0400
On May 12, 2004, at 2:03 PM, Bob Ippolito wrote:
On May 12, 2004, at 5:59 AM, Stiphane Sudre wrote:
On 12 mai 2004, at 00:29, Mark Thomas wrote:
I found that I didn't get the same output i.e. A dump of everything
within
NSDictionary or CFDictionary when I do this in carbon (or was it not
compiling). Should there be any difference in the syntax the there's
no
NSString of NSDictionary ???.
The results differ whether you use:
NSLog(myDictionary);
Which is incorrect unless myDictionary is a NSString*. RTFM :)
It is also incorrect for a string. You should always use
NSLog(@"%@", aString);
unless you can absolutely guarantee that aString has no % sequences in
it.
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.