Recipe: How to Close a Window in Morphic
Last updated at 9:06 am UTC on 28 December 2005
You want to close a window by some other means then the built in close button.
First you'll have to give the window a name when you create it.
window := (SystemWindow new).
window name: 'SomeWindowName'.
window model: self.
Then you can reference it from the World
| aWindowMorph |
aWindowMorph := World submorphNamed: 'SomeWindowName'.