Getting the icon associated with a file extension

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Getting the icon associated with a file extension

Mikael Svane-2
Is it possible to create an Icon instance using a file extension? This is
the behaviour that I am interested in:

Icon fromFileExtension: 'c:\example.doc'

creates an Icon looking like the standard Word file icon found in the
explorer; or:

Icon fromFileExtension: 'c:\'

creates an Icon looking like the windows folder icon.


Regards,

Mikael Svane