Hi
Adrian I will integrate your suggestion.
Now I looked at all the Users of FontChooser and I tried to get one
AbstractSettingDeclaration>>getFont
^ FontChooser
openWithWindowTitle: 'Font for ' , self name
for: self
setSelector: #realValue:
getSelector: #realValue
does not work
Then I looked at all the Users of FontChooserMorph
openWithWindowTitle: titleString for: anObject setSelector: setSelector
getSelector: getSelector
"FontChooser openWithWindowTitle: 'Choose the Menu Font' for:
Preferences setSelector: #setMenuFontTo: getSelector: #standardMenuFont"
is doing a reference to Preferences?
Alain will probably fix that.
Stef
> It seems you cannot open a FontChooser like this because it expects a
> setSelector, getSelector, and a receiver.
>
> See for instance the call in the method #chooseCodeFont.
>
> If called by FontChooser class>>open, some code fails that expects
> these selectors and receiver being initialized. So maybe we should
> just delete #open?!
>
> Cheers,
> Adrian
>
>
> On Jan 1, 2010, at 18:14 , Stéphane Ducasse wrote:
>
>> Hi guys
>>
>> Apparently FontChooser open raise an error
>>
>> http://code.google.com/p/pharo/issues/list?thanks=1728
>>
>> Stef
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project