问题描述
如果我的项目是SafariPlugins,我想知道WebPluginMIMETypesFilename的定义。目标扩展名是webplugin,我的WebPluginMIMETypesFilename是com.SafariPlugIns.webplugin.plist?什么是webPluginMIMETYpes,我只知道在野生动物园午餐时,它将测试webplugin是否具有webPluginMIMETYpes。然后加载插件,但是该怎么办?
I want to know the defination of WebPluginMIMETypesFilename, if my project is SafariPlugins. target extension is webplugin, My WebPluginMIMETypesFilename is com.SafariPlugIns.webplugin.plist? and what is the webPluginMIMETYpes, I just know when safari lunch , it will test the webplugin if have the webPluginMIMETYpes or not. and then load the plugin , but it is what to do ? and it's definition?
,另一个问题是:如果我定义了plist的Principal类,我的插件类名称是:SafariPlugIn,并且如果应用程序首先在该类中启动。并在插件类中使用方法:
and another question is : if I define the the Principal class of plist my plugin class name:SafariPlugIn, and if the App will begin in that class firstly. and in the plugin class the method:
- (NSView *)plugInViewWithArguments:(NSDictionary *)参数
会首先开始吗?
推荐答案
这是您已在其中声明MIME类型的文件的名称在可以处理。您将把该文件添加为插件资源。
It's the name of the file in which you've declared the MIME types your plug-in can handle. You'll add that file as a resource of the plug-in.
根据,文件的内容应为字典,其键为 WebPluginMIMETypes
,其值应为另一本词典。大概,内部字典的格式应与您直接放入Info.plist文件中的格式相同,例如。
According to Chromium's WebKit source, the contents of the file should be a dictionary with the key WebPluginMIMETypes
, whose value should be another dictionary. Presumably, that inner dictionary should be of the same format that you might put directly into your Info.plist file, as exemplified by ClickToFlash's dictionary.
应该再问一个问题。
这篇关于如何在Safari Webplugin项目的plist中定义WebPluginMIMETypesFilename?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!