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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to