• 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: NSLog format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog format


  • Subject: Re: NSLog format
  • From: "Steven M.Palm" <email@hidden>
  • Date: Sat, 1 Feb 2003 19:18:06 -0600

On Saturday, February 1, 2003, at 06:47 PM, Denis Stanton wrote:
NSString *myLabel = [(Block *)[blocks objectAtIndex: index]
lab];
NSLog( myLabel );

It was my understanding that in a case like this, when you pass in
an object, NSLog calls it's descriptionWithLocale: or description:
method.

For the question on what the format string to NSLog() can be:

http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ ProgrammingTopics/DataFormatting/Tasks/FormatStrings.html

If the NSString object being returned is legitimate, then it should work as you have it. That makes me wonder about other things. However, I'm just really digging into Cocoa, so I may be off base here.

-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
-----------------------
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSLog format
      • From: Denis Stanton <email@hidden>
References: 
 >NSLog format (From: Denis Stanton <email@hidden>)

  • Prev by Date: Re: NSLog format
  • Next by Date: Receiving character '\r' in argv[] in a Foundation tool
  • Previous by thread: Re: NSLog format
  • Next by thread: Re: NSLog format
  • Index(es):
    • Date
    • Thread