fieldeditor

Disable Option-Enter line breaks in NSTextField?

I want to disallow entering a new-line character in my NSTextField, which by default is possible by typing Option-Enter (or Option-Return). While I found some pages explaining how to allow line breaks without having to use the Option modifier, I couldn't find anything for disabling line breaks altogether. How can this be done? ...

Subclassing NSTextField to create a number dialing text field

Hi, I am trying to create a number dialing text field, that is, a text field that works in conjunction with an NSStepper sitting next to it. The text field should display floats and allow the user to use the scroll wheel to adjust the number it is displaying as well as the up and down arrow keys to the same effect. It should also swit...