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.