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: Known bug with JOptionPane and quitHandler???



Well, the release notes say:
> Your MRJQuitHandler cannot directly field events. For instance, you cannot run
> a modal dialog which asks the user to confirm the Quit. The workaround is to
> create a new thread and run the modal dialog on it.

Might be relevant...

Ron

_______________________
Ronald Guest
Pepsan & Associates, Inc. Creating Pathways to Excellence
email@hidden
http://www.pepsan.com
_______________________

Nothing will ever be attempted if all possible objections must be first
overcome - Samuel Johnson


On 5/15/01 2:40 PM, "Bill Tschumy" <email@hidden> wrote:

> Today I was adding some file handling capability to my application.
> When the user quits the application, I want to pop up a dialog asking
> if the file should be saved before quitting. If the user quits by
> clicking the close box, this all works fine. However, if the user
> quits by choosing the Quit menu command installed by the system, the
> app hangs in some sort of deadlock after showing the dialog. Is this
> a known (and hopefully fixed) bug, or do you need a report filed on
> it?


References: 
 >Known bug with JOptionPane and quitHandler??? (From: Bill Tschumy <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.