Barry,

The way to handle the quit process is quite different in Windows and OSX.

Windows (also MacOS 9) : when the "Quit" item is selected, the engine sends a "menuPick" message to the menu, that is processed within the "menuPick" handler.

MacOS X : the engine doesn't send a "menuPick" but a "shutdownRequest" message to the current stack.

It seems in your stack configuration - stacks in separate files-, there is a problem to receive the "shutdownRequest" message.

I don't have experience in such configuration - I put stack & substacks in the same file - and I don't know enough about RR to solve this problem.

Regards,

Thierry.

On Saturday, September 6, 2003, at 04:25 AM, Barry Levine wrote:

Thierry,

I've done exactly that. The main stack (the one where the engine is attached) never executes that handler. I've tried it two ways:

1. shutDownRequest handler in main stack only. Result: totally ignored.

2. shutDownRequest handler in both main stack and "third" stack where the Quit item would be chosen. Result: first time handler runs (from substack); second time, totally ignored in both stacks.

3. Compile Distribution with "third" stack only. (Note I do not use the term "substack because these are separate files - each with its own main stack. When I compile, I make the splash stack the "main" one, and then added in the "sign-in" stack which then calls the "third" stack (the "main one" from the user's perspective as that is where he sits 99% of the time.) The shutDownReuest handler in in the stack script of this stack. Result: Works perfectly.

When I compile this for Windows, the menu is in the window, of course. The menuPick handler has EXACTLY the same code as the OSX app's shutDownRequest handler (which, of course, has been commented out when I do this for Windows). Result with all three stack files in the manner I require for my app: Perfection.

I have another suspicion which I will test now.

Regards,
Barry

On Friday, Sep 5, 2003, at 16:16 America/Denver, Thierry wrote:

Subject: Re: correction: shutDownRequest HANDLER fails to work
From: Thierry Arbellot <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

you can try the following:

Create one shutdownRequest handler in the substack
and another in the main stack.
Change the answer message to know which handler is run.

The first time you try to quit, the handler in the substack is run, but
from the 2nd time, the handler in the main stack is run.


Hope it helps.

Thierry.

_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to