Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ApplicationListeners & shutting down in Java 1.4



Greetings,
On 10/12/05, Jeremy Wood <email@hidden> wrote:
> In all our Java 1.4 apps on Mac, we have a minor bug when it comes to
> shutting down.

[...deletia...basically either lose changes, or 'cancel' shutdowns...]

> The bug is this: in our current implementation, we correctly close the
> application when requested, but if the quit is a result of the user's
> attempt to log off/shutdown/restart, then we're always told "The
> application X has cancelled shutdown/restart/etc."

I have the exact same problem, and I resolve it by apologizing to the
users who report it, and explaining that as far as I know, there's no
real choice in Java on the platform.  :(

Yes, it peeves me (and my users), but I've found no workarounds in a
good bit of searching.  My best approach is to provide a 'Don't show
me this anymore' checkbox, and if the user has selected it (i.e. has
theoretically made a knowledgable choice), always save-and-close,
which can be done w/o queuing a QUIT message to the UI thread.

Anyone else who has a workaround, it'd be great to hear...

--  Morgan Schweers, CyberFOX!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >ApplicationListeners & shutting down in Java 1.4 (From: Jeremy Wood <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.