Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
aProjectObject projectParameterAt: aValue
Last updated at 3:05 pm UTC on 28 April 2019
Each project (i.e. an object of the class Project) maintains an IdentityDictionary of project parameters.

This dictionary is held in an an instance variable called

 projectParameters

For the complete protocol to work with this see category 'project parameters' of the class Project.

A parameter is accessed through

 myProjectObject projectParameterAt: aValue

and

 myProjectObject projectParameterAt: aSymbol ifAbsent: aBlock

In case a parameter is absent and one wants to initialize that parameter at the same time use

 myProjectObject projectParameterAt: aKey ifAbsentPut: defaultValueBlock

Parameters are set through


 myProjectObject projectParameterAt: aSymbol put: aValue


Synonyms to these methods are

 parameterAt: aSymbol
 parameterAt: aSymbol ifAbsent: aBlock


Example

See Project parameters dictionary -- usage example