Mailing Lists: Apple Mailing Lists

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

Re: File/bundle Question



On Thursday, May 17, 2001, at 08:15 PM, Karl Goiser wrote:

Directories in the file system can either be 'folders' or 'bundles'. For example, a .rtfd file looks like a document in the Finder, but is actually a directory - and NSFileManager treats it as such, but I want to treat it as a 'file'.


We usually say "package" to refer to something that is a directory, but is treated by the Finder as a single document; this covers things like .rtfd and .nib that aren't really in one of the bundle formats, as well as things like .app that are.

There is an NSWorkspace method, isFilePackageAtPath:, to let you figure out whether a particular directory is a package or not.

Douglas Davidson


References: 
 >File/bundle Question (From: Karl Goiser <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.