[comp.sys.mac.hypercard] DoMenu "Quit" -- wait! not yet!

rieman@tigger.colorado.edu (John Rieman) (12/05/89)

I'm prototyping applications in HyperCard and I often put a
"Quit" option on the prototype file menu.  Script of "Quit"
is usually just DoMenu "Quit Hypercard".  Today I built a
Quit script that sent out some messages to clean things up,
then did the DoMenu "Quit".  Seems that the messages don't 
quite get processed before the Quit takes hold.  In fact,
the messages are evidently garbled, and the garbled version
gets processed.

Specifically, I was hiding some buttons and a field, and (1)
those objects didn't get hidden, but (2) some other objects
were set visible!  (This was obvious as soon as I reopened
the stack -- I couldn't see it happen when I selected Quit.)

Putting a "wait 30" between the hides and the doMenu seemed
to fix things.

-john