• 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: Cocoa classes -> Java?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa classes -> Java?


  • Subject: Re: Cocoa classes -> Java?
  • From: Bill Bumgarner <email@hidden>
  • Date: Mon, 14 Jan 2008 19:15:37 -0800

On Jan 14, 2008, at 4:57 PM, Andreas Monitzer wrote:
On Jan 14, 2008, at 17:29, Patrick M wrote:
I am researching using Java to write an application that will run on a
variety of platforms including Mac OS X and various Unix/Linux
configurations.


My question is:

Is there a way to create a system menu item (NSStatusItem), preference pane
and contextual menu using Java instead of Cocoa for Mac OS X?

Not any more. Until Tiger, Apple supported writing Cocoa applications in Java, but this was removed, probably due to lack of interest of both Apple and the developers.
Now you have to use JNI as the interface, optionally writing your own Java Bridge (make sure you publish it if you do that!).

I don't think the Java bridge would necessarily have helped OP -- sounded more like OP wanted a portable API.


In any case, if you do want to go between Java and Objective-C, I would encourage you to have a poke at what the eclipse folks have been up to. They have built a some new bridging stuff that was working quite well for them the last time I had a look (few months ago).

b.bum

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Cocoa classes -> Java? (From: "Patrick M" <email@hidden>)
 >Re: Cocoa classes -> Java? (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Core Data performance advice... creating relationships.
  • Next by Date: Re: Has their been a Sketch App Update
  • Previous by thread: Re: Cocoa classes -> Java?
  • Next by thread: Re: Cocoa classes -> Java?
  • Index(es):
    • Date
    • Thread