Thanks. Last night I was in class and, when things got boring, I read the "What's New" text doc that accompanied the v2.0.1 release (for the first time, I'm ashamed to admit). There was mention of dropping the last two lines of the File menu (the separator line and 'Quit') in order to put the Quit command on the Application menu. I figured that probably resulted in OSX ignoring my confirmation dialog which was I had written into the menu handler I access through the Menu Builder. Searching further, I found the shudownRequest in the documentation. That did the trick; I put a handler in the stack script ("on shutdownRequest...").
General philosophical complaint (shouted to the heavens): If Rev is going to take it upon itself to move menu items based upon the platform, should it not -still- use the code I crafted for the menu selections? At the very least, it should place comments in the File script about this when you tell it to auto-generate the menu handler. (Yes, I know I eventually figured it out - and if I had not, you were there to lead me out of the swamp - but this is the kind of thing that would drive beginners crazy. If we're going to spread the word about Rev, Rev needs to help us make the IDE a kinder, gentler environment. In this case, it would only take a few lines of comments added to the automatically-generated script.)
Bottom line: It works now and I'm pumped!
Regards, Barry
On Thursday, Aug 7, 2003, at 23:24 America/Denver, Sarah wrote:
How are you handling the quit? If it is in the menu script, it may be that OS X is bypassing that. I suggest you use a shutdownRequest handler instead. If you pass it, the app will continue to shut down, but if the user decides not to quit, just exit the shutdownRequest handler without passing and the shutdown will be cancelled.
This should work for all OSes, I think.
Cheers, Sarah
On Friday, August 8, 2003, at 09:01 am, Barry Levine wrote:
I've got my app set to ask for confirmation before I permit the user to quit using the usual dialog. In the IDE on both platforms, it performs as expected. In the standalone on Windows, it also works as expected. In OSX, it simply quits without my intervening dialog. Is this due to some difference in the way Rev moves the Quit command to the app menu (rather than the File menu as it is on Windows)?
-------------------------------------------------------- Barry Jay Levine "The Mac Guy"
Macintosh Troubleshooting, System Engineering, Training, AppleShare/OSX Server Setup, System Upgrades and Enhancements, Custom Programming for Mac/Windows/Linux/Solaris
On-Site service for K20, Business, Consumer
Phone/VoiceMail: 915-581-1105
Fax: 915-581-8167
eMail: [EMAIL PROTECTED]
--------------------------------------------------------_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
