osx - Cocoa - Multiple NSControls working but not NSTextFields -
i new using interface builder, , building mac os x. have nstableview in main window, nstablecellview subclasses of each have own set of controls. of these controls (there sliders, buttons, etc.) work (they call appropriate action method when use them), except nstextfields, reason can't select or edit. setting in ib indicate should editable. view controller supports nstextfielddelegate protocol, , i've implemented -(bool)acceptsfirstresponder
method in view controller return yes
.
why aren't text fields responsive?
for whatever reason, turning off (row) highlighting solves problem, specified in https://stackoverflow.com/questions/7101237/respond-to-mouse-events-in-text-field-in-view-based-table-view. i'm not sure if 1 wanted highlighting, however...
Comments
Post a Comment