Re: Forwarding key events to a non first responder?
Re: Forwarding key events to a non first responder?
- Subject: Re: Forwarding key events to a non first responder?
- From: Marco Scheurer <email@hidden>
- Date: Thu, 13 Jun 2002 12:14:10 +0200
On Thursday, June 13, 2002, at 01:34 am, John C. Randolph wrote:
Any suggestions to accomplish this somewhat gracefully?
I've seen some pretty elaborate ideas laid out in this thread,
but you should be able to do what you want w/r/t passing events
around without resorting to any tricky hacks with the Obj-C
runtime.
Definitely!
If you just want to intercept event dispatching, you can
subclass NSWindow, and override -sendEvent:.
And if you just want to catch these events (rather than intercepting
them), add a nextResponder to your window and do it there, or as
suggested before, do it in your NSWindowController if you have one.
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
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.