Need help to make these methods prettier

2008-11-01 Thread Andre Masse
Hi, I'm implementing a custom NSFormatter. I want a number with 9 digits displayed as 123 456 789. So before implementing the formatter I made a test project to check the conversion. The version I did get the job done but its not pretty :-) Any more good looking solutions? Thanks, Andre

Re: Need help to make these methods prettier

2008-11-01 Thread Bill Bumgarner
On Nov 1, 2008, at 10:31 AM, Andre Masse wrote: - formatting a number from 123456789 to 123 456 789 and to get the number back: - (IBAction)rollback:(id)sender { NSString *strWithSpaces = [aResult stringValue]; ... } I didn't see this part of your original question.