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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/bryscomat
%40gmail.com
This email sent to brysco...@gmail.com
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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com