开发者

NPAPI for Google Chrome Extension in Objective-C example?

开发者 https://www.devze.com 2023-03-11 11:36 出处:网络
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 h

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号