• 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
Tracing which objects get an event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tracing which objects get an event


  • Subject: Tracing which objects get an event
  • From: Brian Postow <email@hidden>
  • Date: Thu, 4 Mar 2010 16:07:11 -0500

I'm writing a mozilla plugin on the mac. I'm trying to capture events like button clicks, etc. I've done the normal thing of creating my views in inteface builder, and linking the sentActions to methods in my program. This works in stand-alone programs.

However, in my NPAPI plugin, those methods never get called. The button reacts, depresses, whatever, but it doesn't do its action.

Instead, the NPP_HandleEvent method gets called, but I never get the MouseDown or MouseUp event, only the UpdateEvt.

I set up the buttons to accept clicks via: (superview is the Mozilla view, topview is the top of my view hierarchy.)

[superView setNextResponder: topView];
[topView  setNextResponder: nil];
[browserWindow makeFirstResponder: topView];

Basically, I'm confused because the fact that the button is reacting, means to me that the button is getting the event. However that should mean that the Sent Action should take place, but it isn't. Similarly, if the button is getting the event, then the browser shouldn't be getting it at all, and so it shouldn't be sending me an NPP_HandleEvent message...

Is there some way to sort this out? (Also, note: this is a mozilla plugin, and Firefox doesn't like to run in the debugger, so the debugger doesn't work...)


Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tracing which objects get an event
      • From: Brian Postow <email@hidden>
  • Prev by Date: Dealing with glyphs that draw outside their NSTextView
  • Next by Date: Re: PopupButtonCell in a TableView column
  • Previous by thread: Dealing with glyphs that draw outside their NSTextView
  • Next by thread: Re: Tracing which objects get an event
  • Index(es):
    • Date
    • Thread