Nice! :) On 21 April 2012 09:56, Stéphane Ducasse <[email protected]> wrote: > 2840 in mine for 4 icons > O_o > > And of course doing a lot of bad string comparisons….. > > Stef > > > On Apr 21, 2012, at 12:05 AM, Alain Rastoul wrote: > >> Bringing up the World menu ends up with more than 1000 'icon' messages in >> the Transcript >> 8-o >> >> >> "Stéphane Ducasse" <[email protected]> a écrit >> dans le message de news: [email protected]... >> Hi >> >> I added a simple transcript into the following method. >> >> icon >> "Answer the receiver's icon. Handle legacy case >> of wording-based mechanism." >> >> |state| >> Transcript show: 'icon'; cr. >> ^^^^^^^^^^^^^^^^^^^^^^ >> self getStateSelector ifNil: [^super icon]. >> state := (MessageSend receiver: self target selector: self getStateSelector) >> valueWithEnoughArguments: self arguments . >> (state = true or: [state isString and: [(state beginsWith: '<yes>') or: >> [state beginsWith: '<on>']]]) >> ifTrue: [^self onIcon]. >> (state = false or: [state isString and: [(state beginsWith: '<no>') or: >> [state beginsWith: '<off>']]]) >> ifTrue: [^self offIcon]. >> ^super icon >> >> Then I brought up the monticello menu which has 4 toggleMenus and I got a >> lot and a lot and a lot >> of processing in the transcript >> >> It looks to me that there is a wrong logic in the system >> Stef >> >> >> >> > >
-- Best regards, Igor Stasenko.
