Re: Filtering all keyboard input in an NSTextView
Re: Filtering all keyboard input in an NSTextView
- Subject: Re: Filtering all keyboard input in an NSTextView
- From: Aki Inoue <email@hidden>
- Date: Thu, 14 Mar 2002 17:09:12 -0800
Steve,
All command key events are processed by menu items way before the event
reaches your object.
In order to filter these events, you need to override -[NSApplication
sendEvent:].
Aki
On 2002.03.14, at 15:23, Steve Bennett wrote:
Hi!
Here's a weird one. I'm not going to go into the reasons (they're
really
complex), but I need to have an NSTextView which on occation filters
ALL of
it's incoming keystrokes through my own handler, including all Command
key
sequences.
Now, I've tried my own subclass of NSTextView which overrides keyDown,
and
that works just peachy EXCEPT... Command key sequences still try to do
their
thing without running through keyDown first. Any suggestions on how I
can
filter those as well, at least the ones which make it to the
application?
(I'm aware some command key sequences are processed by the OS --
nothing I
can do about those...)
-->Steve Bennett
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.