Re: OS X applications filetype
Re: OS X applications filetype
- Subject: Re: OS X applications filetype
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 28 Feb 2003 00:18:46 +0100
In fatc, you need test if the HFSType of the File is APPL. You can find Api
in NSFileManager to do surch things. I think NSWorkSpace is not the most
apropriate to do this.
Le 27/02/03 20:33, + email@hidden ;
<email@hidden> a icrit :
>
Hi Guys,
>
>
I found one problem with the "getInfoForFile" function.
>
>
I search for some OS X applications in the entire hard disk and there are some
>
of them without the .app extension (i.e. Acrobat reader, virtual pc,
>
photoshop),
>
so the function doesn't recognize these kind of apps.
>
>
Any idea to recognize applications without the .app extension? When I say
>
without .app extension I mean without extension, not that the extension is
>
hidden.
>
>
In fact, I dont know why exist OS X applications without the .app extension,
>
if
>
you remove the extension from any of the normal apps, it becomes a simple
>
folder.
>
>
>
[workSpace getInfoForFile: pname application: nil type:&type];
>
if ( [type isEqualToString: NSApplicationFileType] )
>
NSLog (@"os x application");
>
>
Thanks,
>
Tackel.
_______________________________________________
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.