On Tue, Apr 8, 2008 at 8:33 PM, Stuart Green <[EMAIL PROTECTED]> wrote:
> returnString = [NSString stringWithFormat:@"%c-%i-%i-%f",
> asciiString, firstDouble, secondDouble, thirdDouble];
You have a format string for character-integer-integer-float/double,
not string, double, double, doub
On Apr 8, 2008, at 12:33 PM, Stuart Green wrote:
returnString = [NSString stringWithFormat:@"%c-%i-%i-%f",
asciiString, firstDouble, secondDouble, thirdDouble];
Which is producing a weird output when used outside of an NSLog.
Examining each parameter in the debugger shows exactly what I wan
Try casting them to ints before formatting:
returnString = [NSString stringWithFormat:@"%c-%i-%i-%f", asciiString,
(int)firstDouble, (int)secondDouble, thirdDouble];
On Apr 8, 2008, at 1:33 PM, Stuart Green wrote:
Hi,
I have a string declaration of:
returnString = [NSString stringWithFo
On Apr 8, 2008, at 1:33 PM, Stuart Green wrote:
Hi,
I have a string declaration of:
returnString = [NSString stringWithFormat:@"%c-%i-%i-%f",
asciiString, firstDouble, secondDouble, thirdDouble];
If asciiString really is an ASCII (null-terminated) string, then you
need to use %s, not %c.
Hi,
I have a string declaration of:
returnString = [NSString stringWithFormat:@"%c-%i-%i-%f",
asciiString, firstDouble, secondDouble, thirdDouble];
Which is producing a weird output when used outside of an NSLog.
Examining each parameter in the debugger shows exactly what I want,
i.e. an