Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document bundles



Check out LaunchServices documentation: http://developer.apple.com/ documentation/Carbon/Reference/LaunchServicesReference/Reference/ reference.html

You will find ways to set the extension of a package as hidden. You should, of course, also claim and register your extension in your application's Info.plist (also described in the same general area of documentation). Finder.h is woefully out of date, especially with respect to extensions and type information.

\pat


On Jun 11, 2006, at 3:50 PM, Charles Higgins wrote:

I'd like to create a document bundle programmatically but have a question.
I'd like to hide the extension at creation time but don't see a way to
do that. Of course, I don't mind if the user sets to show the extension
in the Finder after it is created but I don't want to confuse the user
otherwise. I notice that the extension used by Keynote document bundles are
hidden but bundles with the generic .bundle extension are not. So I see
two choices: either set the bundle bit for the directory or register
the extension with the OS.


The problem with the first solution is that in "Finder.h" kHasBundle
has a note that says it pertains to files only. Is this true? Is this
the correct bit to set for a directory? The Bundle Programming
Guide says there is a bundle bit for directories. Is this true?

For the second solution, I don't mind using the generic .bundle
extension except for it showing the extension. Therefore how do
I register my new file extension to the OS and will it hide it for
me? How do I choose my new file extension so it doesn't clash
with others that might be out there?

If neither of these solutions can be solved, I will have to create
a new file format which contains the files needed for the document.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Document bundles (From: "Charles Higgins" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.