2つのSIMBLプラグインの開発経験があります。SIMULLプラグインをSystemUIServerにロードする方法
これらは現在Mac OS X 10.6.6で正常に動作しています。
Menu Extraの動作を変更する新しいSIMBL plug-inを作成する予定です。
メニューExtraはSystemUIServerに属しています。
SystemUIServerがこの場所に存在する:SystemUIServerの
/System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/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>
- はFoo.bundleを構築します。
- $ HOME/Library/Application Support/SIMBL/Pluginsにコピーします。
- 「killall SystemUIServer」を実行します。
- Console.appでログメッセージを慎重に監視します。
しかし、再起動するとFoo.bundleはSystemUIServerにロードされません。
BundleIdentifierを他の種類の汎用アプリ名に変更すると、正しく動作します。
どうしたのですか?
-
moyashi
TTP://hitoriblog.com/