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

loading nib from jnilib


  • Subject: loading nib from jnilib
  • From: Mary Waller <email@hidden>
  • Date: Fri, 14 Feb 2003 09:25:36 +0000

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.

  • Follow-Ups:
    • Re: loading nib from jnilib
      • From: Amul Goswamy <email@hidden>
  • Prev by Date: Re: NSTimer and call-by-reference
  • Next by Date: Re: pdf forms without Adobe Acrobat -also posted on macosxdev
  • Previous by thread: Open source suggestions.
  • Next by thread: Re: loading nib from jnilib
  • Index(es):
    • Date
    • Thread