Re: UTI in Lion
Re: UTI in Lion
- Subject: Re: UTI in Lion
- From: Kyle Sluder <email@hidden>
- Date: Fri, 23 Sep 2011 14:32:08 -0700
On Fri, Sep 23, 2011 at 2:22 PM, Sean McBride <email@hidden> wrote:
> How does LS use MIME types? I mean, where can LS get a file's MIME type from? It isn't in an xattr is it?
I'm probably conflating Launch Services with Core Services here.
I meant that you can use MIME types to determine a UTI. You create a
tag specifier of type kUTTagClassMIMEType, just like you would create
a tag specifier of type kUTTagClassFilenameExtension if you wanted to
test based on file extension.
Launch Services, as a UTI-using service, is probably just always
choosing to use the file extension. Theoretically, if Safari and Mail
added the MIME type to an xattr when they downloaded the file, LS
could consult that information when querying UTI services for the type
of a file.
--Kyle Sluder
_______________________________________________
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