Re: Displaying '%' in the UI (Velocityboy)

2012-04-19 Thread Preston Sumner
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

Re: Displaying '%' in the UI (Velocityboy)

2012-04-19 Thread Lee Ann Rucker
>(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)

Re: Displaying '%' in the UI (Velocityboy)

2012-04-19 Thread Kirk Kerekes
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