On Fri, Sep 23, 2011 at 2:22 PM, Sean McBride <s...@rogue-research.com> 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 (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