Re: file extensions and Mime Type
Re: file extensions and Mime Type
- Subject: Re: file extensions and Mime Type
- From: Alastair Houghton <email@hidden>
- Date: Wed, 22 Apr 2009 10:51:02 +0100
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