On Nov 1, 2008, at 12:12 PM, John Pannell wrote:

I'm working on a document-based application, but having trouble getting the Finder to match my document to my application. On disk, the document is a package. I am successfully writing the directory and the contents to disk, and the directory is written with the proper extension (.pflow).

On the un-successful side, the directory appears as a regular folder in the finder. Here are the relevant entries to my app's Info.plist... do you see anything amiss?

                <dict>
                        <key>CFBundleTypeExtensions</key>
                        <array>
                                <string>pflow</string>
                        </array>
                        <key>CFBundleTypeIconFile</key>
                        <string></string>
                        <key>CFBundleTypeName</key>
                        <string>ProtoFlow Document</string>
                        <key>CFBundleTypeRole</key>
                        <string>Editor</string>
                        <key>LSItemContentTypes</key>
                        <array>
                                <string>com.positivespinmedia.pflow</string>
                        </array>
                        <key>NSDocumentClass</key>
                        <string>PFDocument</string>
                </dict>


Surely to be regarded as a package, you'll need the following somewhere within there:

                        <key>LSTypeIsPackage</key>
                        <true/>

If you used the Target Info window's Properties tab to define your Document Types, make sure you scroll in the table view all the way to the right, as the last column should be a "Package" checkbox.

Hope this helps,

Mark Douma



---------------------------------------------------------------------------
Mark Douma
Grand Rapids, MI, USA
[EMAIL PROTECTED]
http://homepage.mac.com/mdouma46/
---------------------------------------------------------------------------






_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to