over-riding keyDown
over-riding keyDown
- Subject: over-riding keyDown
- From: John James <email@hidden>
- Date: Thu, 21 Apr 2005 10:43:40 -0400
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?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden