Loads icon for given file type.
The NSImage for a file icon can and will contain multiple sizes or representations.
Example:
Sub Paint(g As Graphics, areas() As REALbasic.Rect) Handles Paint
#if TargetMacOS
using EinhugurMacOSBridge
Dim image as NSImage = NSImage.FromFileType("txt")
if image <> nil then
image.Draw(g, 0, 0, 256, 256)
end if
#else
g.DrawText("MacOSBridge plugin is for macOS Only", 10, 10)
#endif
End Sub
Note you could also have the icon as Xojo picture: