2009-05-29 43 views
1

我在這裏有一個比較簡單的。我正在捆綁生活在我的應用程序的資源文件夾中(可能還有應用程序支持文件夾中)。這些軟件包將包含應用程序處理的數據的模板信息。我已經構建了一個包,擴展名爲「booksprintstyle」,目錄結構符合規範。我有一個Info.plist全部設置,我想我已經填寫了我需要的所有值。我是否需要在我的應用程序中更改某些內容以將這些文件夾與擴展名識別爲捆綁文件,或者我在我的捆綁結構中缺少某些內容?我注意到一些bundle有一個名爲PkgInfo的文件;這很重要嗎?創建一個包 - 出了什麼問題?

以下是我的包中的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>CFBundleGetInfoString</key> 
    <string>1.0, Copyright © 2009 Joey Lange</string> 
    <key>CFBundleIdentifier</key> 
    <string>net.atherial.books.exporter.printingpress.printstyle</string> 
    <key>CFBundleInfoDictionaryVersion</key> 
    <string>6.0</string> 
    <key>CFBundleName</key> 
    <string>Books Print Style - Generic</string> 
    <key>CFBundlePackageType</key> 
    <string>BNDL</string> 
    <key>CFBundleShortVersionString</key> 
    <string>1.0</string> 
    <key>CFBundleSignature</key> 
    <string>????</string> 
    <key>CFBundleDisplayName</key> 
    <string>Books Print Style - Generic</string> 
    <key>NSHumanReadableCopyright</key> 
    <string>Copyright © 2009 Joey Lange</string> 
    <key>CFBundleVersion</key> 
    <string>1.0</string> 
</dict> 
</plist> 

回答

6

我需要改變我的應用程序的東西有公認的捆綁程序文件這些文件夾,用的擴展...

是。在應用程序的Info.plist中導出UTI聲明,以獲取這些軟件包的類型。你會宣佈UTI符合com.apple.package。有關更多信息,請參閱Understanding Uniform Type Identifiers

以下是我的包中的Info.plist。

這是不相關的。必要的聲明進入應用程序包,而不是您的文檔/插件包。

我注意到一些bundle有一個名爲PkgInfo的文件;這很重要嗎?

No.