Re: How to retrieve document type?
Re: How to retrieve document type?
- Subject: Re: How to retrieve document type?
- From: Laurent Daudelin <email@hidden>
- Date: Thu, 5 Nov 2009 14:20:42 -0800
On Nov 5, 2009, at 12:49, Ken Thomases wrote:
> On Nov 5, 2009, at 2:11 PM, Fritz Anderson wrote:
>
>> On 5 Nov 2009, at 1:58 PM, Laurent Daudelin wrote:
>>
>>> I'd like to retrieve the document type of a given file and display it like the Finder does, like "Portable Document Format (PDF)" or "Microsoft Word document".
>>>
>>> How can I do that?
>>
>> Start your search from LSCopyKindStringForURL.
>
> Or -[NSWorkspace typeOfFile:error:] followed by -[NSWorkspace localizedDescriptionForType:].
>
> Cheers,
> Ken
Even better, all Objective-C solution :-D
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org
Logiciels Nemesys Software email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden