• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UTI in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: UTI in Lion (From: Sander Stoks <email@hidden>)
 >Re: UTI in Lion (From: Kyle Sluder <email@hidden>)
 >Re: UTI in Lion (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Document opening in Lion
  • Next by Date: Re: UTI in Lion
  • Previous by thread: Re: UTI in Lion
  • Next by thread: Re: UTI in Lion
  • Index(es):
    • Date
    • Thread