• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString stringWithFormat woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSString stringWithFormat woes (From: Stuart Green <email@hidden>)

  • Prev by Date: Re: NSString stringWithFormat woes
  • Next by Date: Cocoaheads Lake Forest (93620) meeting Wednesday, 4/9 at 7pm
  • Previous by thread: Re: NSString stringWithFormat woes
  • Next by thread: Cocoaheads Lake Forest (93620) meeting Wednesday, 4/9 at 7pm
  • Index(es):
    • Date
    • Thread