• 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: Eric Schlegel <email@hidden>
  • Date: Wed, 10 Sep 2003 16:54:32 -0700

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"?

I'd suggest calling LSCopyItemInfoForRef or LSCopyItemInfoForURL (from LaunchServices.h) and checking for the kLSItemInfoIsApplication flag.

-eric
_______________________________________________
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: 
 >How do you know a file is an Application? (From: Jesus De Meyer <email@hidden>)
 >Re: How do you know a file is an Application? (From: David Remahl <email@hidden>)

  • Prev by Date: Re: How do you know a file is an Application?
  • Next by Date: Re: NSOpenPanel and the New Folder button
  • Previous by thread: Re: 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