2 つの SIMBL プラグインの開発経験があります。
現時点では、これらは Mac OS X 10.6.6 で正しく動作しています。
Menu Extra の動作を変更する新しいSIMBL プラグインを作成する予定です。
Menu Extra は SystemUIServer に属しています。
SystemUIServer は次の場所にあります。
/システム/ライブラリ/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 をビルドします。
- $HOME/Library/Application Support/SIMBL/Plugins にコピーします。
- 「killall SystemUIServer」を実行します。
- Console.app でログ メッセージを注意深く監視します。
ただし、再起動時に Foo.bundle が SystemUIServer にロードされません。
BundleIdentifier を別の種類の一般的なアプリ名に変更すると、正常に動作します。
それの何がいけないの?
--
もやし
ttp://hitoriblog.com/