It turned out that my NSMatrix
object was actually an NSForm
object. The latter inherits from the former, but requires that it uses an NSFormCell
as its prototype. I was trying to use an NSTextFieldCell
prototype for an NSForm
object, which was why those NSFormCell
methods were still being called.
Here was the needed change:
-(defclass easygui::cocoa-matrix (easygui::cocoa-extension-mixin ns:ns-form)
+(defclass easygui::cocoa-matrix (easygui::cocoa-extension-mixin ns:ns-matrix)