• 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: Java bridge question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: RE: Java bridge question
      • From: Rolf <email@hidden>
  • Prev by Date: How to stop Classic launching iTunes? (Cocoa & Applescript)
  • Next by Date: NSOutlineView expand by default?
  • Previous by thread: Java bridge question
  • Next by thread: Re: RE: Java bridge question
  • Index(es):
    • Date
    • Thread