Re: Programatically identifying bundles and frameworks?
Re: Programatically identifying bundles and frameworks?
- Subject: Re: Programatically identifying bundles and frameworks?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 17 Oct 2007 13:24:43 -0700
On Oct 17, 2007, at 1:19 PM, Karan, Cem (Civ, ARL/CISD) wrote:
Hi all, I am working on an application that is designed to help a user
clean up their disk space by identifying identical and near-identical
files (in case they've decided to make backups, and forgot that they
had). The only problem I'm running into is handling bundles and
frameworks; I want to be able to identify that I'm walking into a
bundle
or framework, and treat the entire thing as a single unit. Is there a
programmatic way of doing this, something along the lines of +(Bool)
isBundle:(NSString *) canonicalPathToDirectory;?
No, there is not. Any directory on the file system can be treated as
a bundle for purposes of CFBundle/NSBundle resource lookup. There is
a related notion, that of a "package", which is a directory that is
presented to the user as a single opaque item; you can use Launch
Services or NSWorkspace to identify those. However, frameworks
generally are not packages--they are transparent to the user, and
developers (for example) can use this to look at their headers.
However, it is usually fairly simple to identify frameworks on the
system.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden