Two Squeak Window Questions

Mark Guzdial guzdial at cc.gatech.edu
Tue Feb 10 17:09:45 UTC 1998


>Mark,
>
>>   Is there a way to kill a Window in Squeak without using the close
>>   button?
>
>Send the message StandardSystemController>>closeAndUnschedule to the
>window's controller. Here is a simple doIt for killing a window you are
>pointing at:
....Code removed...

EXCELLENT!  Thanks!
>
>> Second, is there any way to open two MVC windows in a method?  When I send
>> "open" to a controller, it terminates the current process.
>
>StandardSystemController>>openNoTerminate is actually the right way to go.
>Maybe you just didn't restore the screen correctly. Here is an example
>of what I do in such cases:
>
>(BrowserView browser: Browser new editString: nil) controller openNoTerminate.
>(BrowserView browser: Browser new editString: nil) controller openNoTerminate.
>ScheduledControllers restore.
>Processor terminateActive

Ooh -- I didn't do the restore or terminate at all!  Thank you very much --
I'll try that!

Mark

--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html





More information about the Squeak-dev mailing list