Close window doesn't quit standalone

Scott Slaugh xslaugh at hotmail.com
Fri Oct 24 11:38:27 EDT 2003


>I have a standalone which doesn't quit when I close the window on OS X. To 
>get the app to quit I have to select Quit from the application menu. I'm 
>using 2.1 release. The standalone destroystack option is checked during the 
>build.
>
>Is this the expected behavior or a bug? How can I have the app quit when 
>the only window it has is closed?

I had this problem with a program I created.  What I ended up doing was 
putting the following handler into my stack script:
on closeStack
  quit
end closeStack

It's probably not the best way of doing things, but it seems to work.

Scott Slaugh

_________________________________________________________________
Cheer a special someone with a fun Halloween eCard from American Greetings! 
Go to  http://www.msn.americangreetings.com/index_msn.pd?source=msne134



More information about the Use-livecode mailing list