0

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>
  1. Foo.bundle をビルドします。
  2. $HOME/Library/Application Support/SIMBL/Plugins にコピーします。
  3. 「killall SystemUIServer」を実行します。
  4. Console.app でログ メッセージを注意深く監視します。

ただし、再起動時に Foo.bundle が SystemUIServer にロードされません。

BundleIdentifier を別の種類の一般的なアプリ名に変更すると、正常に動作します。

それの何がいけないの?

--

もやし

ttp://hitoriblog.com/

4

1 に答える 1

0

SIMBL は cocoa アプリケーションでのみ機能します。SystemUIServer は cocoa アプリケーションではありません。その他の証拠については、そのシンボリック リンクを確認してください。

于 2011-09-26T14:34:43.333 に答える