Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString - Initialize with number....



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.