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

Re: Sheets using Cocoa/Java


  • Subject: Re: Sheets using Cocoa/Java
  • From: Nick <email@hidden>
  • Date: Thu, 11 Jul 2002 17:43:16 -0400

In obj-c you use NSApp as a pointer to the current NSApplication. I am sure that it is a mistake to simply "create" an NSApplication. One is already created by NSApplicationMain();

So,what you probably need to do is;

NSApplication nsapp = NSApplication.sharedApplication();

...

nsapp.beginSheet(FinestraSheet,FinestraPrincipale,null,null);

Nick



On Thursday, July 11, 2002, at 05:03 PM, malcom wrote:

Hi,
i need to open a window as a sheet. In my controller i have two NSWindow:
FinestraPrincipale
FinestraSheet

i have tried to insert (in my controller class):

NSApplication x = new NSApplication
...
public void ApriSheetConnessione....
x.beginSheet(FinestraSheet,FinestraPrincipale,null,null);

but nothing... the results it's:

2002-07-11 23:02:18.779 Tribe[989] *** Assertion failure in -[NSApplication init], NSApplication.m:808
ObjCJava WARNING:
jobjc_jvm_newObject(): constructor with signature ()V on class ApriSheetConnessione failed (should morph the java exception)
2002-07-11 23:02:18.797 Tribe[989] AppKitJava: uncaught exception OBJCJava_RUNTIME_EXCEPTION ((null))
2002-07-11 23:02:18.797 Tribe[989] AppKitJava: exception = (null description)
2002-07-11 23:02:18.798 Tribe[989] AppKitJava: terminating.

Tribe has exited with status 1.


anyone can help me?
Thx a lot,
bye
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Sheets using Cocoa/Java (From: malcom <email@hidden>)

  • Prev by Date: Sheets using Cocoa/Java
  • Next by Date: NSFormatter problem when dialog box closed
  • Previous by thread: Sheets using Cocoa/Java
  • Next by thread: NSFormatter problem when dialog box closed
  • Index(es):
    • Date
    • Thread