• 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
Re: Cocoa sheets using Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa sheets using Java (From: k barnd <email@hidden>)

  • Prev by Date: Cocoa sheets using Java
  • Next by Date: Re: All these newbie questions that are answered by documentation
  • Previous by thread: Cocoa sheets using Java
  • Next by thread: Re: Cocoa sheets using Java
  • Index(es):
    • Date
    • Thread