• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
handling events within NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: handling events within NSWindow
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Re: Checking for internet connection?
  • Next by Date: Re: KVC Problems with Indexed Accessor for To-Many Properties
  • Previous by thread: Re: Cursor does not change when moving mouse over controls.
  • Next by thread: Re: handling events within NSWindow
  • Index(es):
    • Date
    • Thread