unexpected quit on closeStackRequest
Rob Cozens
rcozens at pon.net
Thu Jul 11 09:11:01 EDT 2002
>The following causes a (repeatable) unexpected quit (according to
>Mac OS X) only when run from within a stack, not as a standalone:
>
>on closeStackRequest
> answer "This will close this application." with "Cancel" or "Close"
> if it is "Cancel" then exit to top
> else
> if there is a file "tempfile.txt" then
> delete file "tempfile.txt"
> end if
> pass closeStackRequest
> end if
>end closeStackRequest
Hi Kurt,
FWIW, your handler runs fine on Mac OS 9. One thought:
closeStackRequest should be speciific to the stack whose close box is
clicked on: I see no reason to pass it.
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list