What I'm trying to accomplish is two fold:
- I want my NSTextField to act like a "microwave timer" and update as characters are entered. So the field would default to "00:00" (minutes, seconds). When a 1 is pressed, the field would look like "00:01". Then a 4 is pressed and "00:14". A 2 is pressed and "01:42".
- I want to store this as an NSNumber on the controller as the number of seconds in the timer. So if the text field shows "10:00", then the value on the property would be 600.
Seems like NSFormatter is a good place to be looking, but my attempts have been full of fail. Any help is welcome. Thanks!