Re: NSLog format
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.
References: | |
| >NSLog format (From: Denis Stanton <email@hidden>) |