Objective c 如何将SIMBL插件加载到SystemUIServer

Objective c 如何将SIMBL插件加载到SystemUIServer,objective-c,simbl,Objective C,Simbl,我有开发两个SIMBL插件的经验 目前,这些都在Mac OS X 10.6.6上正常工作 我计划做一个新的菜单,修改菜单额外的行为 菜单Extra属于SystemUIServer SystemUIServer存在于以下位置: /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer SystemUIServer的捆绑包标识符为com.apple.SystemUIServer 因此,我向Info.pl

我有开发两个SIMBL插件的经验

目前,这些都在Mac OS X 10.6.6上正常工作

我计划做一个新的菜单,修改菜单额外的行为

菜单Extra属于SystemUIServer

SystemUIServer存在于以下位置:

/System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer

SystemUIServer的捆绑包标识符为com.apple.SystemUIServer

因此,我向Info.plist添加了一个键SIMBLTargetApplications,如下所示:

<?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>

CfBundledDevelopmentRegion
英语
Cbundlexecutable
${EXECUTABLE_NAME}
循环流化床锅炉
CbundleIdentifier
com.yourcompany.${PRODUCT_NAME:rfc1034Identifier}
CbundleInfo字典版本
6
CFBundleName
${PRODUCT_NAME}
CbundlePackageType
BNDL
CbundleShortVersionString
1
CFBundleSignature
????
循环流化床锅炉
1.
非主类
SIMBLTargetApplications
集束标识符
com.apple.systemuiserver
  • 构建一个Foo.bundle
  • 复制到$HOME/Library/Application Support/SIMBL/Plugins
  • 运行“killall SystemUIServer”
  • 使用Console.app仔细查看日志消息
  • 但是重新启动时,Foo.bundle不会加载到SystemUIServer

    如果将BundleIdentifier更改为其他类型的通用应用程序名称,则其工作正常

    怎么了

    --

    莫亚希


    ttp://hitoriblog.com/

    SIMBL仅适用于cocoa应用程序。SystemUIServer不是cocoa应用程序。检查其符号链接以获取更多证据