Re: NSString stringWithFormat woes
Re: NSString stringWithFormat woes
- Subject: Re: NSString stringWithFormat woes
- From: "Hamish Allan" <email@hidden>
- Date: Wed, 9 Apr 2008 01:03:43 +0100
On Tue, Apr 8, 2008 at 8:33 PM, Stuart Green <email@hidden> 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, double. Your format string should be
"%s-%f-%f-%f".
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden