Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Quit and Discard All Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quit and Discard All Windows



I've just discovered that Java applications under Lion also recognise alt-apple-Q, aka "Quit and Discard Windows" in addition to the old apple-Q. Do we as programmers have to do anything to handle this, or is it all handled automatically? Can we detect and handle it at all?

I have done the following in an application:

        com.apple.eawt.Application appleApplication = com.apple.eawt.Application.getApplication();
        appleApplication.disableSuddenTermination();
        appleApplication.setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS);

This says - if I understand correctly - that the application should always close all windows on termination. Shouldn't one of apple-Q or alt-apple-Q be disabled in this case?

Steve

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.