• 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: Bundle, Wrappers, whatever
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundle, Wrappers, whatever


  • Subject: Re: Bundle, Wrappers, whatever
  • From: Raphael Sebbe <email@hidden>
  • Date: Wed, 13 Mar 2002 08:42:26 +0100

A File Package has the following structure:

MyFile.my-extention/
Contents/
PkgInfo

The PkgInfo is an 8 byte file that contains File Type/Creator Code. It will make the folder appear as a file in the Finder. You can organize your data as you want within MyFile/.

Without using Contents/PkgInfo, the Finder does not know it is a File Package until you app (which should describe it as one of its documents) is first launched, and it will show up as a folder until then. Also note that in any case, the File Package icon will only be correct after the app's first launch, being generic before that.

Raphael

On Wednesday, March 13, 2002, at 03:37 AM, Sam Goldman wrote:

Hi all,

I am developing a convenience application that will make it easier for
me to read my favorite mangas. I want to have a double-clickable file that
will contain all the images in a certain volume and have it open in my
application.

I know that .rtfd files and .app applications are actually folders
containing other files, but how do I implement my own file. Would that be a
bundle? The term in its non-programmatic sense would be correct...

I *could* just have the app make a folder with a .whatever extension and
copy files into it, then read them appropriately, but I am interested to
know the *best* way of doing it.

Any comments (or flames for posting such a stupid question...)?

- Sam

--
Windows is a 32-bit patch to a 16-bit shell for an 8-bit operating system
written for a 4-bit processor by a 2-bit company without 1 bit of sense.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Bundle, Wrappers, whatever (From: Sam Goldman <email@hidden>)

  • Prev by Date: Re: Loading a localized tiff file: how to?
  • Next by Date: mouse drag feedback
  • Previous by thread: Bundle, Wrappers, whatever
  • Next by thread: Re: Bundle, Wrappers, whatever
  • Index(es):
    • Date
    • Thread