【发布时间】:2014-03-31 08:45:35
【问题描述】:
我使用 mono 和 gtk# 为 mac 开发了一个应用程序。
问题是默认文件处理程序。
我使用此 Info.plist (sn-p) 注册我的应用程序
...
<array>
<dict>
<key>CFBundleTypeName</key>
<string>My Filetype</string>
<key>CFBundleTypeIconFile</key>
<string>file.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>ext</string>
<string>EXT</string>
</array>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
</array>
....
它注册正确(图标匹配,打开我的应用程序),但每当我打开文件时出现以下消息:
The document "test.ext" could not be opened. mono cannot open files of this type.
那么我怎样才能让它工作呢?
【问题讨论】: