Re: File/bundle Question
Re: File/bundle Question
- Subject: Re: File/bundle Question
- From: Douglas Davidson <email@hidden>
- Date: Fri, 18 May 2001 10:08:16 -0700
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