• 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: MIME types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIME types?


  • Subject: Re: MIME types?
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 4 May 2003 21:36:45 -0400

On Sunday, May 4, 2003, at 04:44 PM, petite_abeille wrote:

Is there a standard way to get a MIME type for a given file?

NSFileManager.fileAttributesAtPath:traverseLink: doesn't seem to return any MIME information :(

Any straightforward alternatives?

It's a hack, but since Apache comes with every copy of OS X, you could use it's mime.types file. That's just a simple text file with a list of types and filename extensions.

/private/etc/httpd/mime.types

sherm--


"A well-written program is its own heaven; a poorly-written program is its own hell."

-- The Tao of Programming
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: MIME types?
      • From: email@hidden (Simon Fraser)
References: 
 >MIME types? (From: petite_abeille <email@hidden>)

  • Prev by Date: NSUserKeyEquivalent not working?
  • Next by Date: I think I get most of the memory stuff but...
  • Previous by thread: MIME types?
  • Next by thread: Re: MIME types?
  • Index(es):
    • Date
    • Thread