我有开发两个SIMBL插件的经验。
目前,这些系统在MacOSX10.6.6上运行正常。
我计划做一个新的SIMBL插件,以修改菜单的行为额外。
菜单额外属于SystemUIServer。
SystemUIServer存在于这个地方:
/System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer
SystemUIServer的包标识符是com.apple.systemuiserver。
因此,我将密钥SIMBLTargetApplications添加到Info.plist中,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034Identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSPrincipalClass</key>
<string></string>
<key>SIMBLTargetApplications</key>
<array>
<dict>
<key>BundleIdentifier</key>
<string>com.apple.systemuiserver</string>
</dict>
</array>
</dict>
</plist>但是Foo.bundle在重新启动时不会加载到SystemUIServer。
如果将BundleIdentifier更改为另一种通用应用程序名称,它将正常工作。
这有什么问题吗?
--
莫亚希
ttp://hitoriblog.com
发布于 2011-09-26 14:34:43
SIMBL只适用于可可应用。SystemUIServer不是可可应用。查看它的符号链接以获得更多证据。
https://stackoverflow.com/questions/4792664
复制相似问题