Hi alexander I did: BloclClosure>>silent ^[ self value ] on: ProgressInitiationException do: [ :ex | ex sendNotificationsTo: [ :min :max :curr | Transcript show: min printString,' ',max printString,' ',curr printString; cr ]. ]. On Sep 20, 2010, at 10:33 AM, Alexander LazareviÄ wrote:
Hi Stef,
this is a tricky thing to do from _within_ Morphic, because even if you avoid progress notification completely during recompilation by doing something like this in a workspace
[ ClassBuilder beSilent: true.
Morph subclass: #BorderedMorph instanceVariableNames: 'borderWidth borderColor borderStyle' classVariableNames: '' poolDictionaries: '' category: 'Morphic-Kernel'.
] ensure: [ ClassBuilder beSilent: false]
the recompilation will succeed, but you'll end up with an error from the TextMorph (or subclass of it) of the workspace you've "done" this code in, because it is also a subclass of BorderedMorph.
Yes I got it too :)
You can ignore the debugger or wrap that code in an error handler that just does a resume, but yes ... it's not ideal.
Alex
2010/9/19 Stéphane Ducasse <stephane.ducasse@inria.fr>:
hi guys
I tried to add borderStyle to BorderedMorph and the progressbar showing the progress blow up. So we should really have a way to specify silent ui action. Does anybody have an idea how I could do that?
[BorderedMorph addInstVarNamed: 'borderStyle'] silent would be cool.
Stef _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project