Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I do not think that Cocoa and the old EventRecord system mix together very well.</p> <p>A cocoa event model is now avalaible in the last build of mozilla. </p> <p>Check-out the tree for comm-central with <a href="http://mercurial.selenic.com/" rel="nofollow noreferrer">Mercurial</a> and try it:<br> <em>hg clone <a href="http://hg.mozilla.org/mozilla-central/" rel="nofollow noreferrer">http://hg.mozilla.org/mozilla-central/</a> src</em><br> The path to the Xcode project is:<br> <em>src/modules/plugin/sdk/samples/basic/mac/</em><br> and the plugin must be copied to:<br> <em>/Library/Internet Plug-Ins/</em> </p> <p>I tried it myself with the basic firefox plugin and the cocoa event system works.<br> I just do not know how to get a pointer to the current NSView.</p> <p>I think it had to be done for the 64 bits version of Firefox on mac. It is not available in Firefox 3.6, but might be in Firefox 3.7, and the version of the NPAPI SDK with the Cocoa event model is the version 0.23.</p> <p>EDIT:<br> To try it directly without mercurial download the latest mozilla build as Misha at:<br> <a href="http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/latest-trunk/" rel="nofollow noreferrer">http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/latest-trunk/</a><br> The Xcode project with the Cocoa event model is at:<br> <a href="http://mxr.mozilla.org/mozilla-central/source/modules/plugin/sdk/samples/basic/mac/" rel="nofollow noreferrer">http://mxr.mozilla.org/mozilla-central/source/modules/plugin/sdk/samples/basic/mac/</a></p> <p>The NetscapeCocoaPlugin sample in the Webkit sources use the cocoa event model too.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload