Re: Bug in NSString stringWithFormat?
Re: Bug in NSString stringWithFormat?
- Subject: Re: Bug in NSString stringWithFormat?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 23 Aug 2001 08:34:19 -0700
On Thursday, August 23, 2001, at 08:49 AM, Christian Mike wrote:
How do I make a request to Apple to make the
%[width][.prec]s
format specifier in NSString (and NSMutableString) work the same as
the C
printf function?
Perhaps something along the lines of:
va_list
args;
NSString
*properlyFormattedString;
char
*buf = alloca(someBigNumber);
sprintf(buf, format, args);
properlyFormattedString = [NSString stringWithCString:buf];
-jcr
"These kids today don't know the simple joy of saving four bytes of
page-0 memory on a 6502" - unknown