Ned Konz ned@bike-nomad.com wrote:
On Wednesday 30 April 2003 12:27 pm, Stephane Ducasse wrote:
I would not do this change. I imagine that we should find a much clever way of notifying user. Avi suggested to me that we could have exception that would be caught and letting the used decide if he wants to put a UI or not for headless image for examples.
This is already how ComplexProgressIndicator works. Your underlying code raises ProgressNotifications.
So what we'd need is two things - A. A list of all places that such sometimes-interactive processes call the UI (in order to convert them to raising exceptions) B. A few other handlers of such exceptions, where Morphic is not present (versions for MVC and for the emergency evaluator prompt might be a good start).
Daniel
On Thu, 1 May 2003, Daniel Vainsencher wrote:
So what we'd need is two things - A. A list of all places that such sometimes-interactive processes call the UI (in order to convert them to raising exceptions)
The most obvious candidates are: - Object>>inform: - Object>>confirm: - Object>>confirm:orCancel: - Object>>confirm:trueChoice:falseChoice: - String>>displayProgressAt:from:to:during: - the class side protocol of FillInTheBlank
Some users of PopUpMenu and SelectionMenu may also need to be modified.
If nobody's tackled this cleanup by early next week, I volunteer to start it then.
Avi
Hi avi
Please do, I will review it. I think that this kind of changes will really improve the core.
We have enough to do with SystemDictionary and the core behavior.
Stef
On Thursday, May 1, 2003, at 08:42 PM, Avi Bryant wrote:
On Thu, 1 May 2003, Daniel Vainsencher wrote:
So what we'd need is two things - A. A list of all places that such sometimes-interactive processes call the UI (in order to convert them to raising exceptions)
The most obvious candidates are:
- Object>>inform:
- Object>>confirm:
- Object>>confirm:orCancel:
- Object>>confirm:trueChoice:falseChoice:
- String>>displayProgressAt:from:to:during:
- the class side protocol of FillInTheBlank
Some users of PopUpMenu and SelectionMenu may also need to be modified.
If nobody's tackled this cleanup by early next week, I volunteer to start it then.
Avi
Prof. Dr. Stéphane DUCASSE http://www.iam.unibe.ch/~ducasse/ "if you knew today was your last day on earth, what would you do different? ... especially if, by doing something different, today might not be your last day on earth" Calvin&Hobbes
"The best way to predict the future is to invent it..." Alan Kay.
Open Source Smalltalks: http://www.squeak.org, http://www.gnu.org/software/smalltalk/smalltalk.html Free books for Universities at http://www.esug.org/sponsoring/promotionProgram.html Free Online Book at http://www.iam.unibe.ch/~ducasse/WebPages/FreeBooks.html
squeak-dev@lists.squeakfoundation.org