I tried at first to use the standard NSNumberFormatter in IB but
couldn't find the right pattern.
Your solution works great and don't require subclassing so thanks a lot.
Andre Masse
On Nov 1, 2008, at 16:09, Bill Bumgarner wrote:
Use the APIs whenever possible.
int main (int argc,
On Nov 1, 2008, at 1:56 PM, Andre Masse wrote:
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
On 1-Nov-08, at 13:56 , Andre Masse wrote:
The version I did get the job done but its not pretty :-) Any more
good looking solutions?
if (first 10) {
str0 = [NSString stringWithFormat:@00%d, first];
}
else if (first 100){
On Nov 1, 2008, at 1:56 PM, Andre Masse wrote:
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