Re: printf
Re: printf
- Subject: Re: printf
- From: Hank Heijink <email@hidden>
- Date: Thu, 13 Dec 2007 09:59:53 -0500
Check out NSStrings +[stringWithFormat:] method. You can then take the
resulting string and give it to whatever print function you like,
converting it with -[UTF8String] if necessary.
Hank
On Dec 13, 2007, at 9:40 AM, Roland Silver wrote:
Is there a function in one of the frameworks that's like printf, but
allows the output conversion '%@' in its template? Eg
likePrintf("%@ is allowable", @"this string");
or better:
likePrintf(@"%@ is allowable", @"this string");
I KNOW about NSLog. The problem is all that stuff that it prints
first:
NSLog(@"log just this");
2007-12-13 07:35:53.125 helloWorld[8101:10b] log just this
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@runbox.com
This email sent to email@hidden
Hank Heijink
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >printf (From: Roland Silver <email@hidden>) |