Skip navigation.
 
mlRe: printf with "%@"
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.

Related mailsAuthorDate
mlprintf with "%@" Roland Silver Aug 11, 17:55
mlRe: printf with "%@" Dirk Stegemann Aug 11, 17:57
mlRe: printf with "%@" Roland Silver Aug 11, 18:08
mlRe: printf with "%@" Dirk Stegemann Aug 11, 18:19
mlRe: printf with "%@" Roland Silver Aug 11, 18:26
mlRe: printf with "%@" Piers Uso Walter Aug 11, 18:41
mlRe: printf with "%@" Joseph Kelly Aug 11, 18:41
mlRe: printf with "%@" Dirk Stegemann Aug 11, 18:47
mlRe: printf with "%@" Deborah Goldsmith Aug 11, 23:41
mlRe: printf with "%@" Andrew Farmer Aug 12, 00:28
mlRe: printf with "%@" Wayne Hasley Aug 12, 01:28