• 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 - Initialize with number....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString - Initialize with number....


  • Subject: Re: NSString - Initialize with number....
  • From: Rosyna <email@hidden>
  • Date: Tue, 2 Oct 2001 05:15:36 -0700

I don't see how from the readability point of view, you give it an int, so you use %i. I think people can generally understand that %i is an int, they both have an i...

Ack, at 10/2/01, Ondra Cada said:

>>>>>> Rosyna (R) wrote at Tue, 2 Oct 2001 04:52:01 -0700:
R> Try [NSString stringWithFormat:@"%i",myInt]

whilst that's right, '%d' might be somewhat better from the readability point of view, since it points out that you'll get the decimal
representation.

--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insane People


References: 
 >NSString - Initialize with number.... (From: Ryan Dary <email@hidden>)
 >Re: NSString - Initialize with number.... (From: Rosyna <email@hidden>)

  • Prev by Date: Docklet(ing) API & 10.1: Where ????
  • Next by Date: Re: [[object autorelease] release]
  • Previous by thread: Re: NSString - Initialize with number....
  • Next by thread: Re: NSString - Initialize with number....
  • Index(es):
    • Date
    • Thread