• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Issues while running Modal Window.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Multiple Inheritence (Was: Is _objc_flush_caches_(Class) necessary to swizzle methods?)
  • Next by Date: _validateBundleSecurity, _NSIsInsecureBundle, and dirIsRootUnsafe
  • Previous by thread: Re: Call for SplitView suggestions
  • Next by thread: _validateBundleSecurity, _NSIsInsecureBundle, and dirIsRootUnsafe
  • Index(es):
    • Date
    • Thread