npruntime example plugin (c++) of NPAPI fails to run on mac OSX 10.5
I have compiled Mozilla NPAPI plugin example npruntime on Mac OSX 10.5. It give me a libnprt.dylib
I am bundling this dylib with proper plist.
On loading the plugin, NP_GetMIMEDescription() is getting called (i am logging this), but its not going inside NP_GetEntryPoints().
How a part of code is getting loaded and a开发者_StackOverflow part not?
Can you suggest me of any other documentation or example code? Any light on "How to make an NPAPI plugin for Mac"?
Advance thanks -Parimal Das
Solving your problem with the npruntime sample is a bit hard with the details given. I suggest checking out WebKits examples from their repository. Mac-wise Mozillas samples are somewhat outdated.
To spare yourself from implementing it all, you can also take a look at:
- QtBrowserPlugin
- FireBreath (Cocoa support is work-in-progress though at the moment)
If you haven't found it already you might also find this NPAPI plugin introduction helpful.
精彩评论