• 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: petite_abeille <email@hidden>
  • Date: Tue, 6 May 2003 21:02:53 +0200

On Tuesday, May 6, 2003, Simon Fraser wrote:

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

That's not an ideal way to solve this problem. There's a hole in
the APIs here. Hopefully, Apple will add a LaunchServices API method
to get the MIME type for a file. For now, you'll have to use the
deprecated Internet Config API.

No joy :/

Alternatively, it appears that the application Info.plist defines a CFBundleTypeMIMETypes as part of CFBundleDocumentTypes... is there any central location which would provide access to all the different CFBundleTypeMIMETypes defined on a system?

Thanks.

Cheers,

PA.
_______________________________________________
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.

References: 
 >Re: MIME types? (From: email@hidden (Simon Fraser))

  • Prev by Date: what's the topmost NSWindow level
  • Next by Date: Re: Dragging promised files and other types in the same drag
  • Previous by thread: Re: MIME types?
  • Next by thread: monitoring table selection
  • Index(es):
    • Date
    • Thread