[UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
[UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
- Subject: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
- From: Iceberg-Dev <email@hidden>
- Date: Tue, 13 Oct 2009 00:36:54 +0200
From what I've found in the documentation, the UTI type of a file
can be retrieved using the LaunchServices APIs. This requires to
provide a FSRef.
Wouldn't there be an API I didn't see in Foundation that lets you
obtain the type without having to convert, at least, a NSURL to a FSRef?
I'm mainly interested in finding the type of a text file (txt, html,
rtfd, rtf) from its path.
Mac OS X 10.5.
_______________________________________________
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