Re: How to distinguish if a file is a Document or an Application
Re: How to distinguish if a file is a Document or an Application
- Subject: Re: How to distinguish if a file is a Document or an Application
- From: Quentin Mathé <email@hidden>
- Date: Thu, 20 Mar 2003 01:20:39 +0100
Le mercredi, 19 mars 2003, ` 22:27 Europe/Paris, David Remahl a icrit :
A set of tests that I can think of to determine wether a particular
"file" (meaning bundle or file) is an Application from the viewpoint
of the Finder are these: (if any of the following is true, then the
file is an Application).
- Has an HFS file type of 'APPL'
- Has a file extension of .app, and has a bundle structure
It's better to test "has the bundle bit set" than "has a bundle
structure". The bundle bit is a file metadata inherited from Mac OS
Classic.
--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.