views:

82

answers:

0

The CurrencyConverter sample Cocoa application uses unformatted text fields in the interface, and pulls the values using floatValue in the controller.

I added a formatter (to Currency) to the input dollar amount field, but this breaks the application. I'm just learning Cocoa, and am assuming "floatValue" cannot handle the $ sign at the front of the string that is stored as a result of the formatter. As soon as I put the currency format to the field, the app gets stuck after entering the dollar amount to be converted (before even clicking the Convert button).

Any ideas?