• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How-To create a document bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How-To create a document bundle


  • Subject: Re: How-To create a document bundle
  • From: Laurence Harris <email@hidden>
  • Date: Sat, 6 Jan 2007 15:23:27 -0500


On Jan 6, 2007, at 2:11 PM, Patrick Perroud wrote:

Hello,

My new UB application is needing a document bundle file format - but I didn't find any "How-To" pointers in Reference Library: am I right assuming I should first create a plain folder, then add the document's files within that folder,

Yes.

then convert somehow that folder into a bundle?

No, which is why assumptions are evil. ;-) If you want to create a proprietary packaged document type for your application, you need to come up with an extension (should be unique to your application, of course) for use with the names of those packages will you and add an entry to your plist to tell Launch Services that folders with that extension are packages. I can't remember the key off the top of my head, but see what TextEdit does for .rtfd documents and copy it.


How to achieve this latter step (converting on the fly a folder to a bundle being what I am actually looking for: any advice or direction to create such a document bundle would be very much appreciated indeed.

It will happen automatically if the folder's name has the correct extension. Some people set the package/BNDL Finder info bit as well, but IIRC that's only useful if a package ends up on a computer that doesn't have your application installed (and hence doesn't recognize your extension as belonging to a package).


Larry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How-To create a document bundle (From: Patrick Perroud <email@hidden>)

  • Prev by Date: How-To create a document bundle
  • Next by Date: Simple File System Programming in Carbon
  • Previous by thread: How-To create a document bundle
  • Next by thread: Simple File System Programming in Carbon
  • Index(es):
    • Date
    • Thread