• 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: file extensions and Mime Type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file extensions and Mime Type


  • Subject: Re: file extensions and Mime Type
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 22 Apr 2009 23:20:35 +0100

On 22 Apr 2009, at 20:14, Sean McBride wrote:

On 4/22/09 11:31 AM, rajesh said:

We have listed few mime types which we support and mapped them
accordingly for processing.
How can one retrieve the Mime type for a particular file?

The filesystem does not store a file's mime type nor its UTI as part of
the file's metadata. The only filesystem metadata available is the file
name extension and HFS type. Those are what Launch Services consults to
decide the UTI.


In the case of a bundle, IIRC it may also consult Info.plist, and there's nothing stopping Apple from adding additional mechanisms in future.

Anyway, UTIs are the right way to go, generally speaking, which was the point.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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: 
 >file extensions and Mime Type (From: rajesh <email@hidden>)
 >Re: file extensions and Mime Type (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Time since Login?
  • Next by Date: Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance
  • Previous by thread: Re: file extensions and Mime Type
  • Next by thread: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
  • Index(es):
    • Date
    • Thread