Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page >


The Finder and Bundles

When you create a bundle, the build system can set a Finder attribute called a “bundle bit” in the bundle folder. Before the Mac OS X Finder displays a bundle in one of its windows, it reads this attribute. If the bundle bit is turned on, the bundle appears as a file package. A file package is a folder that the Finder presents to users as if it were a file (see Figure 4-1). In other words, the Finder hides the contents of the folder from users. This opacity discourages users from inadvertently (or intentionally) altering the contents of the bundle.


Figure 4-1 The Finder’s bundle bit

Figure 4-1 The Finder’s bundle bit

Some bundles might not have the bundle bit set; this is the case with Apple-provided bundles. Yet the Finder can still handle them appropriately. As explained in the next section (“Types of Bundles”), bundle folders should have extensions indicating their type—.app, .framework, .bundle, and so on. When the Finder encounters one of these folder extensions and determines that the folder is indeed a bundle, it does the proper things:

For more information on the Finder and how it handles bundles and documents, see the chapter “The Finder”.



< Previous PageNext Page >


Last updated: 2003-08-21

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2003 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice