[Pharo-project] Draft chapter on Settings Framework for PBE2 now online
alain.plantec at yahoo.com
Mon Jun 20 02:36:56 EDT 2011
First you have to declare your own keyword.
To do that, extend SettingTreeBuilder for your application by
adding a #myAppSettings method.
"Process a <myAppSettings> pragma"
currentPragma methodClass theNonMetaClass perform: currentPragma
selector with: self.
Then you can use <myAppSettings> as you do with <systemsettings> for the
In order to open the SettingBrowser, just indicate the keywords you want:
(SettingBrowser browse: #('myAppSettings' 'systemsettings'))
(SettingBrowser browse: #('myAppSettings' ))
I will update the settings chapter with that.
Le 20/06/2011 00:18, Hernán Morales Durand a écrit :
> Hi Oscar,
> I would like to build my own application settings in a separated
> Settings browser, can I use<myAppSettings> like the<systemsettings>
> pragma? any example code how to do it?
> 2011/2/8 Oscar Nierstrasz<oscar.nierstrasz at gmail.com>:
>> Hi Folks,
>> There is now a draft chapter on the Settings Framework for "Pharo by Example 2" available for review:
>> - on
More information about the Pharo-dev