Re: Capture "Space" key event
Re: Capture "Space" key event
- Subject: Re: Capture "Space" key event
- From: Allan Odgaard <email@hidden>
- Date: Fri, 5 Mar 2004 16:05:58 +0100
On 5. Mar 2004, at 14:53, Mathew Peterson wrote:
My guess was to sub class NSApplication, but of course events don't
get passed down the chain.
From the NSApplication documentation, so I would think your guess is
correct:
- (void)sendEvent:(NSEvent *)anEvent
Dispatches anEvent to other objects. You rarely invoke sendEvent:
directly, although you might want to override this method to perform
some action on every event. sendEvent: messages are sent from the main
event loop (the run method). sendEvent: is the method that dispatches
events to the appropriate respondersNSApp handles application events,
the NSWindow indicated in the event record handles window-related
events, and mouse and key events are forwarded to the appropriate
NSWindow for further dispatching.
_______________________________________________
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.