Re: Getting a float from an NSNumberFormatter
Re: Getting a float from an NSNumberFormatter
- Subject: Re: Getting a float from an NSNumberFormatter
- From: Joshua S Emmons <email@hidden>
- Date: Sat, 04 Jan 2003 17:32:10 -0500
So here's my question: how do I get the float I want from the
NSTextField above?
[myTextField floatValue] is not working?
Honestly, I didn't think to try it. I was thinking it would try to
convert the $ and , stuff to a float and fail. Wouldn't I need to get
the value from the formatter. Something like
[myFormatter contriveFloatValue]
?? Or is the formatter hooked to the cell in some way I'm not groking?
Well, trying this seems to work for all values I can come up with. So
thank you for solving my idiotic question. But if there's a kind soul
out there who has a good handle on how formatters work, maybe you can
mail me privately with an explanation, because I'm clearly not getting
it and the docs are leading me in circles.
Thanks again!
-josh emmons
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.