• 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
Using NSApplication.endSheet() in the Java API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSApplication.endSheet() in the Java API


  • Subject: Using NSApplication.endSheet() in the Java API
  • From: Jake MacMullin <email@hidden>
  • Date: Sat, 2 Feb 2002 14:47:31 +1030

Hi,

I'm trying to create a sheet for a modal window in a document based Java Cocoa App. I created a window in Interface Builder, added an outlet to my MyDocument class and connected the window. So when I call NSApplication.sharedApplication().beginSheet(...) it works fine and displays the window I created in Interface Builder as a sheet. However, I can't get the sheet to go away!!

The sheet has a "Close" button on it which I have linked to an action in my MyDocument class that calls NSApplication.sharedApplication().endSheet(mySheet) But nothing happnes. I know that the action is being called, because It's writing stuff to std.out

Any help at all would be appreciated,

Thanks,

Jake MacMullin


  • Follow-Ups:
    • Re: Using NSApplication.endSheet() in the Java API
      • From: Stefan Jung <email@hidden>
  • Prev by Date: Debugging Weirdness
  • Next by Date: Connecting standard output to an NSTextView
  • Previous by thread: Debugging Weirdness
  • Next by thread: Re: Using NSApplication.endSheet() in the Java API
  • Index(es):
    • Date
    • Thread