IconLib REALbasic Plugin

Icon.Constructor Constructor

A constructor to get the desktop file icon of a folder item or a icon loaded from a .icns file with a custom data fetch mask.

Constructor(
   f as FolderItem,
   iconSource as Integer,
   rawDataMask as Integer)

Parameters

f
The FolderItem to obtain the icon from or load a icns file from.
iconSource
A constant to specify what to load.

0 = Desktop icon from a folder item.
1 = .icns file.
rawDataMask
Use this to optimize loading of the Icons raw data on MacOS systems. By default then all data is loading but if you need less then you gain more speed by setting the mask so that less is loaded. (You can use BitOr to set more than one flag)

Remarks

Note:
Only MacOS Carbon systems support loading from a .icns file.

See Also

Icon Class