Issues while running Modal Window.
Issues while running Modal Window.
- Subject: Issues while running Modal Window.
- From: Mohamed S <email@hidden>
- Date: Fri, 24 Sep 2004 23:22:19 -0700 (PDT)
Hi,
I am doing a Java-Cocoa application as a Full-screen
app. In this, I am showing a Modal window using the
following bit of code:
int returnModal =
NSApplication.sharedApplication().runModalForWindow(modalPanel);
if (returnModal == NSApplication.RunStoppedResponse ||
returnModal == NSApplication.RunAbortedResponse) {
modalPanel.close();
}
Normally, this window gets shown successfully, and
gets closed, when I do a
NSApplication.sharedApplication().stopModal();.
However, sometimes while I need to show the modal
sheet, the modal window pops-up and gets closed
automatically (it just pops on and off in a blink) .
I found that when this happens, the
NSApplication.RunAbortedResponse is the return value,
which shows that "abortModal" had got invoked.
However, I do not invoke abortModal specifically
anywhere in my code.
Can anyone point me what could be the issue, or if I
am doing something wrong ??
Thanks,
Mohammed S
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden