• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting a float from an NSNumberFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Getting a float from an NSNumberFormatter
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: NSOutlineView -> Reloading ALL data
  • Next by Date: Re: Delete Icon
  • Previous by thread: Getting a float from an NSNumberFormatter
  • Next by thread: Re: Getting a float from an NSNumberFormatter
  • Index(es):
    • Date
    • Thread