• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to distinguish if a file is a Document or an Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: How to distinguish if a file is a Document or an Application (From: David Remahl <email@hidden>)

  • Prev by Date: dylib problem
  • Next by Date: Re: dylib problem
  • Previous by thread: Re: How to distinguish if a file is a Document or an Application
  • Next by thread: Filenames for Apple Script
  • Index(es):
    • Date
    • Thread