NPAPI for Google Chrome Extension in Objective-C example?
I searched all Internet but can't find any example of working NPAPI plugin (in Objective-C for Mac OS) which is called from Google Chrome Extension. I'm very want to get such Xcode example, please help if someone have o开发者_高级运维ne.
You don't actually need one example plugin that does all those things; how an NPAPI plugin is implemented internally has no effect on how it's called from the browser. The API is always the same C API.
Start with a simple Mac plugin (like this one), change the .c to a .m (or add new .m files), and use as much Objective-C as you like in the implementation.
Then once that's built, follow the instructions for using an NPAPI plugin in a Chrome extension.
精彩评论