• 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: Using NSClassFromString with a Custom Class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSClassFromString with a Custom Class


  • Subject: Re: Using NSClassFromString with a Custom Class
  • From: "Finlay Dobbie" <email@hidden>
  • Date: Mon, 12 Jun 2006 13:57:26 +0100

On 11/06/06, Steve Anderson <email@hidden> wrote:
In my Objective-C Cocoa app I am trying to use my custom Java class
'HelloWorldJava', but it doesn't seem to be getting loaded (or even
found) using the following code:

    Class javaClass = NSClassFromString(@"HelloWorldJava");
    helloworldjava = [[javaClass alloc] init];

Apple recommends that new code does not use the Java Bridge. Instead, the recommended path is to use JNI. There are samples for this, search developer.apple.com

-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Using NSClassFromString with a Custom Class (From: Steve Anderson <email@hidden>)

  • Prev by Date: Re: If Functions
  • Next by Date: Re: Unable to install MacOSXUpdate...
  • Previous by thread: Re: Using NSClassFromString with a Custom Class
  • Next by thread: Console error message: failed to load window nib file
  • Index(es):
    • Date
    • Thread