Re: How to distinguish if a file is a Document or an Application
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: Umed Zokirov <email@hidden>
- Date: Wed, 19 Mar 2003 14:20:49 -0800
The easiest to do that is to use Launch Services API, given an fsref to
an item it will tell you exactly what it is.
LSCopyItemInfoForRef(
const FSRef * inItemRef,
LSRequestedInfo inWhichInfo,
LSItemInfoRecord * outItemInfo)
For more info look into LaunchServices.h
Umed
_______________________________________________
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.