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                                              
laurent.daude...@gmail.com
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to