Hi,

after getting chewed out (again!) for forgetting to extend the
"DocumentToContentType" function after an update of ICS, I like to suggest
an improvement.

As base use a THashedStringlist (or something similar). 
Fill the list with the default extension/contentType names and values pairs
and provide a public "RegisterContentType" procedure to add customized
content types to the list. 
It might be actually faster (sorted list) than the old function...
Maybe this is also the time to add "use the registry to find MIME type for
file types" ;)

Lars

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to