RE: Java bridge question
RE: Java bridge question
- Subject: RE: Java bridge question
- From: John DeNisi <email@hidden>
- Date: Mon, 19 May 2003 09:40:40 -0400
See the section entitled "What About Non-Empty Constructors" on the
following web page:
http://cocoadevcentral.com/articles/000024.php
Note that using the "newWithSignature" method requires that you understand
the Java Native Interface (JNI) style parameter type signatures which are
briefly summarized on the web page. See Sun's JNI documentation for more
details.
-John DeNisi
NOMOS Corp.
www.nomos.com
-----Original Message-----
From: Rolf [
mailto:email@hidden]
Sent: Monday, May 19, 2003 8:14 AM
To: email@hidden
Subject: Java bridge question
Hi,
I have a Java class that I'm trying to create an object of in Objective C.
I'm having problems calling the constructor (which has a string parameter).
The declaration of the Java class constuctor is:
public IniFile(String name)
From objective-C I call:
id iniConfig = [[NSClassFromString(@"IniFile") alloc] init:@"test.ini"];
This does not work. Calling constructors of other Java classes in the same
manner works fine (as long as they don't take a parameter).
Anybody know how to solve this ?
/Rolf
_______________________________________________
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.