Re: loading nib from jnilib
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.