• 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: rajesh <email@hidden>
  • Date: Wed, 22 Apr 2009 12:10:23 +0200

Thanks Alastair.

On Apr 22, 2009, at 11:51 AM, Alastair Houghton wrote:

On 22 Apr 2009, at 10:31, rajesh wrote:

Application we are currently working supports file drag from desktop....
It typically finds what type of file it is and then processes it accordingly.


we don't want to solely  depend on file extension.
How can file Mime Type help us..

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? tried NSFileHandle and NSWorkSpace but of no help , (even googled around for hints , may be my search strings aren't effective )

OS X doesn't rely on MIME types, for a variety of reasons.

You want to be using UTIs instead.  Take a look here:

 <http://developer.apple.com/macosx/uniformtypeidentifiers.html>

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: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Long Time Dealy When getting Vended Object
  • Next by Date: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
  • Previous by thread: Re: file extensions and Mime Type
  • Next by thread: Re: file extensions and Mime Type
  • Index(es):
    • Date
    • Thread