Mailing Lists: Apple Mailing Lists

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

Document bundles



  Hi, thanks for reading this post.

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.

  Thanks for your help,
   Charles Higgins

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_______________________________________________
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


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.