Last updated at 6:57 am UTC on 14 April 2018
The UIManager class has been part of Squeak since version 3.9.
The framework allows for cross-UI-framework requests to be made from Squeak code. It is accessible as:
Such requests are for example
chooseDirectory: label from: dir
or a picklist
chooseFrom: aList lines: linesArray title: aString
"Choose an item from the given list. Answer the index of the selected item."
UIManager is a dispatcher for various user interface requests, such as menu and dialog interactions. An instance of UIManager is associated with each Project to implement the appropriate functions for Morphic (MorphicUIManager), MVC or other user interfaces.
"Answer the kind of tool builder to use, possibly influenced by project preferences"
^ builderClass ifNil: [ builderClass := ToolBuilder findDefault ]