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.

And if those first- and secondDouble variables are really doubles, then you display them with %e or %f or %g, not %i.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to