Last updated at 5:52 pm UTC on 4 November 2017
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, MVC or other user interfaces.
"Answer the kind of tool builder to use, possibly influenced by project preferences"
^ builderClass ifNil: [ builderClass := ToolBuilder findDefault ]