Re: How do you know a file is an Application?
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.