Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening Multiple NIb but with Java referencing Objective-C




On Aug 22, 2006, at 4:15 AM, Jeffers wrote:

Hi,
Im trying to open a NIB file from Java but calling an Objective-C
class that is the NIB controller.
I've tried:
AppController a = new AppController();
NSApplication.loadNibNamed("Graphics", a);

Where AppController is my Objective-C class and 'Graphics' is my NIB
file name. Its giving me a 'cannot find symbol' error.
Any ideas how i can do this??

You might want to do some reading up on JNI, mixing Cocoa and java was never quite this easy that I know of.


The only similar example I notice - if you have Developer Tools installed is...
/Developer/Examples/Java/Cocoa/BlastApp/BlastAppController.java


Or take a look at nib4j
http://www.nib4j.com/


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Opening Multiple NIb but with Java referencing Objective-C (From: Jeffers <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.