FROM : Andrew Farmer
DATE : Sat Aug 12 00:28:31 2006
On 11 Aug 06, at 08:55, Roland Silver wrote:
> Dear list,
> Is there a function/method available in the Cocoa API that's like
> printf, except for
> allowing "%@" usage:
>
> printf("%u %@ in a row\n", 5, @"foos");
> or (more likely)
> printf(@"%u %@ in a row\n", 5, @"foos");
Straightforward answer: No. The printf function is part of libc, not
Objective-C, and libc doesn't define a %@ sequence.
DATE : Sat Aug 12 00:28:31 2006
On 11 Aug 06, at 08:55, Roland Silver wrote:
> Dear list,
> Is there a function/method available in the Cocoa API that's like
> printf, except for
> allowing "%@" usage:
>
> printf("%u %@ in a row\n", 5, @"foos");
> or (more likely)
> printf(@"%u %@ in a row\n", 5, @"foos");
Straightforward answer: No. The printf function is part of libc, not
Objective-C, and libc doesn't define a %@ sequence.
| Related mails | Author | Date |
|---|---|---|
| Roland Silver | Aug 11, 17:55 | |
| Dirk Stegemann | Aug 11, 17:57 | |
| Roland Silver | Aug 11, 18:08 | |
| Dirk Stegemann | Aug 11, 18:19 | |
| Roland Silver | Aug 11, 18:26 | |
| Piers Uso Walter | Aug 11, 18:41 | |
| Joseph Kelly | Aug 11, 18:41 | |
| Dirk Stegemann | Aug 11, 18:47 | |
| Deborah Goldsmith | Aug 11, 23:41 | |
| Andrew Farmer | Aug 12, 00:28 | |
| Wayne Hasley | Aug 12, 01:28 |






Cocoa mail archive

