Re: Cocoa sheets using Java
Re: Cocoa sheets using Java
- Subject: Re: Cocoa sheets using Java
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 9 Nov 2001 22:16:10 +0000
On Friday, November 9, 2001, at 10:02 pm, k barnd wrote:
NSApplication app;
app.beginSheet(mySheet, mainWindow, mySheet, null,
null);
can someone tell me what is wrong with this code?
You do not initialize app. I doubt you want to create your own instance
of NSApplication. In Objective-C, the default instance is called
"NSApp", or [NSApp sharedApplication] (a class method). I have no idea
what it is in Java.
-- Finlay