links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
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'.
aWindowMorph delete.