Re: Testing if a folder is a bundle
Re: Testing if a folder is a bundle
- Subject: Re: Testing if a folder is a bundle
- From: Chris Boot <email@hidden>
- Date: Mon, 27 Aug 2001 20:29:47 +0200
Hi,
>
We try to distinguish between the notion of a "bundle" and that of a
>
"package". A package is a folder that is presented to the user as a
>
single object. A bundle is a folder that is structured in one of the
>
ways that CFBundle/NSBundle can interpret. The notions are distinct:
>
for example, a nib is a package but not (except trivially) a bundle; a
>
framework is a bundle but not a package; a packaged application is both.
Yes, I am aware that a bundle != a package, but that term had escaped my
mind. As I was working with loadable bundles earlier in the day, that was
the first thing that came to my mind.
While I'm at it, are there certain rules for chopping off a package's
extension before showing its name to the user? Right now I'm just testing
for .app and copping that off if it exists, but are there any others I need
to worry about? Obviously this doesn't apply to nib files, as their
extensions are shown by the Finder.
Thanks,
--
Chris Boot
email@hidden
DOS Computers manufactured by companies such as IBM, Compaq, Tandy, and
millions of others are by far the most popular, with about 70 million
machines in use worldwide. Macintosh fans, on the other hand, may note
that cockroaches are far more numerous than humans, and that numbers
alone do not denote a higher life form.
New York Times, November 26, 1991