April 30, 2013
7:12 a.m.
Hi, As far as I understood, Spec is sort of asynchronous, let me explain. I implemented my ComposableModel (i.e., MyWindow) as a window with a TextModel, a DropList model, and two buttons: ok and cancel. The behavior I want to achieve is something that is easily doable with StandardWindow, something like name := StandardWindow new textEntry: 'Please enter a name'. Until the window stays open, the call does not return and once ok is pressed the result is stored in the 'name' variable. Now with Spec I've something like 'MyWindow new openWithSpec', but the call returns immediately. What is the best way to achieve such behavior? Thanks in advance. Cheers, Roberto