Annick Fron wrote:
>>>
>>> If I use for all buttons of my application error handling, like :
>>> [self click] on: Error do: [...]
>>> I loose the debugging . What could I use to keep errors in the
>>> development image and skip them in the runtime ?
>>> For intance RuntimeSystem isRuntime ifTrue: [Dialog warn: '..']
>>> ifFalse: ?
[self click]
on: Error
do: [:ex|
RuntimeSystem isRuntime
ifTrue: [Dialog warn: '..']
ifFalse: [ ex reject ]]
Perhaps implement this code on RuntimeSystem so it is nicely in one place:
result := RuntimeSystem handleMyApplicationErrorsIn: [self click]
R
-
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc