Using NSApplication.endSheet() in the Java API
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