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

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>)

  • Prev by Date: printf
  • Next by Date: Re: printf
  • Previous by thread: printf
  • Next by thread: Re: printf
  • Index(es):
    • Date
    • Thread