• 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 do you know a file is an Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you know a file is an Application?


  • Subject: Re: How do you know a file is an Application?
  • From: David Remahl <email@hidden>
  • Date: Thu, 11 Sep 2003 01:22:24 +0200

Even if the extension is hidden (in fact, it is _always_ hidden for Applications), you will see it with its full file name in your application (unless you ask for the display name).

The other case you need to check for, is wether a file is of the 'APPL' type. There is API for getting the HFSType of a file in NSFileManager.h.

/ Rgds, David

On den 11 september 2003, at 00:56:29AM, Jesus De Meyer wrote:

I used to check for the .app suffix, but obviously this would not work if the extension was hidden or not written at all. Is there any way to know that a file is of kind "Application"?
_______________________________________________
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.

  • Follow-Ups:
    • Re: How do you know a file is an Application?
      • From: Eric Schlegel <email@hidden>
References: 
 >How do you know a file is an Application? (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: How do you know a file is an Application?
  • Next by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Previous by thread: How do you know a file is an Application?
  • Next by thread: Re: How do you know a file is an Application?
  • Index(es):
    • Date
    • Thread