• 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: loading nib from jnilib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading nib from jnilib


  • Subject: Re: loading nib from jnilib
  • From: Amul Goswamy <email@hidden>
  • Date: Fri, 14 Feb 2003 12:50:52 -0800

What are you trying to do? Loading a nib involves a whole runtime that AppKit provides, thus it can't be done from a pure Java application. There is always Cocoa Java. Cocoa-Java lets you use AppKit and Foundation classes while writing in Java.

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ ApplicationKit/Java/Intro/IntroAppKit.html#//apple_ref/doc/uid/20000690

Amul Goswamy
Interface Builder QA
Apple

On Friday, February 14, 2003, at 01:25 AM, Mary Waller wrote:

I have a nib containing a NSPanel, which has as it's file owner a subclass of NSWindowController.
If I load the nib from a Cocoa app it behaves just as I want, but if I try and load it from a java application using objC in a jnilib I either get the java app hanging or it exits with "exited due to signal 5 (SIGTRAP)" just after this:

- (id)init
{
if(self = [super initWithWindowNibName:@"NibName"]){
NSLog(@"WindowController - init called"); // this is printed out OK
return self;
}

Is it possible to load a nib from a jnilib?
What does NSApplication do that I'm not doing from the jnilib?
I tried writing it in Java, but you can't use AppKit classes from pure Java so that fell flat :(
Yes I've bought the books - isn't mentioned!


mwaller
_______________________________________________
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.

  • Follow-Ups:
    • Re: loading nib from jnilib - now java from cocoa!
      • From: Mary Waller <email@hidden>
References: 
 >loading nib from jnilib (From: Mary Waller <email@hidden>)

  • Prev by Date: Text field cell with menu
  • Next by Date: A question about IMP
  • Previous by thread: loading nib from jnilib
  • Next by thread: Re: loading nib from jnilib - now java from cocoa!
  • Index(es):
    • Date
    • Thread