リソースを編集する
InfoPlist.stringsを編集する
次にリソースの編集を行ないます。
最初はInfoPlist.stringsですが、これはたいした事はありません。__MyCompanyName__を自分の名前に書き換えるだけです。
/* Localized versions of Info.plist keys */
CFBundleGetInfoString =
"RMGQuickLook version 0.1, Copyright (c) 2008 NovemberKou.";
NSHumanReadableCopyright = "Copyright (c) 2008 NovemberKou.";
Info.plistを編集する
次はInfo.plistです。
LSItemContentTypes
- LSItemContentTypesはこのプラグインがサポートするUTIの配列です。Repeating Motif Generatorのドキュメントをサポートするので、独自のUTIを宣言する必要があります。
- 独自のUTIを宣言するのはクイックルックプラグインではなく、Repeating Motif Generatorです。ここではRepeating Motif Generatorが宣言した独自UTI "com.novemberkou.rmgdoc"を指定しておきます。
- とはいっても、現在のRepeating Motif Generatorは独自UTIなど宣言していませんので、後で変更する必要があります。Repeating Motif GeneratorのInfo.plistに追加すべき項目については次のページで説明します。
CFBundleIdentifier
- CFBundleIdentifierはプラグインの識別子です。どのような場面で使うのかわかりませんが、テンプレートで定義されていたものを参考に、それらしいものを指定しておきました。
QLThumbnailMinimumSize
- QLThumbnailMinimumSizeは実用上意味のある最小のサムネイルサイズを指定するもののようです。小さすぎると紋様かどうかわからなくなると思うので128にしておきました。
後はバージョン関係の数値なので省略します。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>QLGenerator</string>
<key>LSItemContentTypes</key>
<array>
<b><string>com.novemberkou.rmgdoc</string></b>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<b><string>com.novemberkou.rmgquicklookgenerator</string></b>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleVersion</key>
<b><string>0.1</string></b>
<key>CFBundleShortVersionString</key>
<b><string>alpha</string></b>
<key>CFPlugInDynamicRegisterFunction</key>
<string></string>
<key>CFPlugInDynamicRegistration</key>
<string>NO</string>
<key>CFPlugInFactories</key>
<dict>
<key>B7C2725C-FEA7-4B0C-AB93-79C0C5348A61</key>
<string>QuickLookGeneratorPluginFactory</string>
</dict>
<key>CFPlugInTypes</key>
<dict>
<key>5E2D9680-5022-40FA-B806-43349622E5B9</key>
<array>
<string>B7C2725C-FEA7-4B0C-AB93-79C0C5348A61</string>
</array>
</dict>
<key>CFPlugInUnloadFunction</key>
<string></string>
<!-- Change following property to <true/> if the generators supports
multiple concurrent requests -->
<key>QLSupportsConcurrentRequests</key>
<false/>
<!-- Change following property to <true/> if the generators needs
to be run on main thread -->
<key>QLNeedsToBeRunInMainThread</key>
<false/>
<!-- Change following property to indicate the minimum useful size for a thumbnail the generator
can produce. If your generator is fast enough, you can remove the minimum size so to appear in lists -->
<key>QLThumbnailMinimumSize</key>
<b><real>128</real></b>
<!-- Change following properites to indicate the preview size to use if preview generation takes too long -->
<key>QLPreviewWidth</key>
<real>800</real>
<key>QLPreviewHeight</key>
<real>600</real>
</dict>
</plist>

HOME
前のページへ