• 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 in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: CFShow in Cocoa (From: Mark Thomas <email@hidden>)
 >Re: CFShow in Cocoa (From: Stéphane Sudre <email@hidden>)
 >Re: CFShow in Cocoa (From: Bob Ippolito <email@hidden>)

  • Prev by Date: Inserting objects in content array
  • Next by Date: Unsigned Long Long
  • Previous by thread: Re: CFShow in Cocoa
  • Next by thread: NSScanner behavior
  • Index(es):
    • Date
    • Thread