Hi. I'm wondering what a "real" Cocoa developer would do with the following situation.
There's an application 1-line area in which text can be entered - it doesn't need font control, spell checking, etc. I thought "a ha! this calls for a NSTextField." and that's how it was initially implemented.
Later, it was decided we needed to be able to undo & redo what was typed into this 1-line area - and it had to happen before we went through anything like ControlTextShouldEndEditing. So here's the style question:
Would a real Cocoa developer:
a) replace the field editor normally sent to the control with an NSTextView, which has nice built in text undo & redo? (using the window
delegate's windowWillReturnFieldEditor:forObject: method, for example)
b) just remake the control as an NSTextView rather than an NSTextField?
c) something even more clever?
Thanks in advance . . .
Dave