Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
UIManager
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:
UIManager default


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."

Class comment:
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.

 builderClass
	"Answer the kind of tool builder to use, possibly influenced by project preferences"
	^ builderClass ifNil: [ builderClass := ToolBuilder findDefault ]