2011-01-25 8 views
0

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

しかし、再起動するとFoo.bundleはSystemUIServerにロードされません。

BundleIdentifierを他の種類の汎用アプリ名に変更すると、正しく動作します。

どうしたのですか?

-

moyashi

TTP://hitoriblog.com/

答えて

0

SIMBLは、Cocoaアプリケーションでのみ動作します。 SystemUIServerはココアアプリケーションではありません。より多くの証拠があるかどうかシンボリックリンクを確認してください。

関連する問題