![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Define a prescribed close:
method for your application class such
that Smalltalk Express exits properly when you close your application. For
example, for the calorie-dictionary application, you define close:
as follows:
CalorieViewManager method definition instance close: aPane Smalltalk isRunTime ifTrue: [(MessageBox confirm: 'Are you sure you want to exit?') ifTrue: [self close. ^Smalltalk exit] ifFalse: [^self]] ifFalse: [^self close]