Re: Making NSNumberFormatter empty-tolerant
Re: Making NSNumberFormatter empty-tolerant
- Subject: Re: Making NSNumberFormatter empty-tolerant
- From: Frédéric Testuz <email@hidden>
- Date: Thu, 27 Aug 2009 22:47:56 +0200
Le 27 août 09 à 21:46, bryscomat a écrit :
Interesting. Is that documented anywhere? That's why I was confused
as to exactly how I got mine to work. Seems like a fluke...
On Aug 27, 2009, at 2:39 PM, Frédéric Testuz wrote:
I had the same problem. For the 10.4 behaviour of
NSNumberFormatter, you don't have to subclass it.
Just set the nil symbol with:
[myNumberFormatter setNilSymbol:@""];
Alternatively, you can set it in IB:
In the number formatter attribute palette, go down until you see
Nil Symbol, enter a character and then delete it.
Note: if only the NSDateFormatter has the same attribute.
Frédéric_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@gmail.com
This email sent to email@hidden
I don't think I saw it written explicitly. When I had the problem,
before subclassing NSNumberFormatter, I check the docs, see
setNilSymbol and try to use it.
For the IB trick I can't remember how I found it. It must be something
like thinking about how IB is probably archiving objects and trying
some solutions.
Frédéric_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden