Skip navigation.
 
mlover-riding keyDown
FROM : John James
DATE : Thu Apr 21 16:43:40 2005

I have a non-main window that has a few user write-able text fields. 
It has a button
which puts the model into a mode ("running") during which I want it to
use my own keyDown to intercept keyevents.  My keyDown is in my
overridden NSWindowController which is a delegate for the given window
we are talking about.  It never gets called.

I tried to bind the "editable" property and the "enable" property of
the textfields to a BOOL which is true when I am not in the "running"
state.  This seems to prevent the editing of the fields when we are in
the "running mode but "does not allow my keyDown to be called.

This used to work in a different window when I had the first responder
a NSTableView.  Unfortunately there are no tableviews in this window. 
That probably was a bad design as the user could leave the cursor in an
editable field and the desired behavior would not work.

any suggestions?

Related mailsAuthorDate
mlover-riding keyDown John James Apr 21, 16:43
mlRe: over-riding keyDown Matt Neuburg Apr 21, 23:24