Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > Legacy Documents > Cocoa >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Cocoa-Java quit/cancel-quit header bug in Mac OS X 10.0


Q: Why does my new/modified Cocoa Java application quit when the user cancels quitting, and cancel quitting when it should really quit?

A: Mac OS X 10.0 contains a bug in the headers for Cocoa Java's NSApplication class. Cocoa Java programs that rely on using the constants NSApplication.TerminateNow or NSApplication.TerminateCancel and have been compiled with the headers in Mac OS X 10.0 will find that they are backwards; the integer values of those constants were reversed by mistake. Thus, developers should use the correct (reverse) integer values when developing their programs, to get the desired behavior. Existing, not-recompiled apps should not be affected by this bug.


[Apr 09 2001]