On Apr 19, 2012, at 6:57 AM, Kirk Kerekes wrote:
>
> On Apr 18, 2012, at 2:00 PM, cocoa-dev-requ...@lists.apple.com wrote:
>
>> Re: Displaying '%' in the UI (Velocityboy)
>
> As a possibly more clear alternative to escaping the %, you could use:
>
> [NSStr
>(trusting NSNumber's -description method for formatting)
description is for NSLog etc. If you get in the habit of using it for things
you display to users, you'll have some unpleasant surprises.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Apr 18, 2012, at 2:00 PM, cocoa-dev-requ...@lists.apple.com wrote:
> Re: Displaying '%' in the UI (Velocityboy)
As a possibly more clear alternative to escaping the %, you could use:
[NSString stringWithFormat:@"%.0f%@",ratio1, @"%"]
Or, even