handling events within NSWindow
handling events within NSWindow
- Subject: handling events within NSWindow
- From: Alex Reynolds <email@hidden>
- Date: Sat, 14 Oct 2006 17:36:05 -0400
I am giving up trying to customize WebView and instead trying to
handle events in the NSWindow that contains my WebView.
I have created a subclass of the NSWindow containing my WebView and
added:
- (void) sendEvent: (NSEvent *) theEvent
{
NSLog(@"%@", theEvent);
[super sendEvent: theEvent];
}
My application compiles fine and displays the web request. But
keypresses (among other events) are not NSLog'ed in the run log.
Are there any outlets I need to wire with my NSWindow+customclass to
handle events?
I have been reading this:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSWindow/sendEvent:
and it says never to invoke this directly. But I don't know where
else to put this since I want to simply debug where events are going
within my WebView (let alone do anything with this).
Regards,
Alex
_______________________________________________
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