• 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-Java Bridge collapse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-Java Bridge collapse


  • Subject: Re: Cocoa-Java Bridge collapse
  • From: Andy Lee <email@hidden>
  • Date: Mon, 11 Jul 2005 12:03:57 -0400


On Jul 11, 2005, at 11:36 AM, Brad O'Hearne wrote:

This was posted today on TheServerSide -- anyone have any comments? As a Java developer, I'm curious if Apple is trying to ween Mac app developers from Java and steer them toward Cocoa development

Cocoa-Java Bridge collapse

Posted by: Maggie Leber on July 11, 2005 2 comments last post: July 11, 2005 updated
OSNews has pointed out a paragraph in Apple's "Introduction to Cocoa-Java Integration Guide" that indicates that Cocoa 10.4 looks like the end of the road for Java/Cocoa integration, suggesting that future client applications be written in Objective-C.

There's a thread on this at MacSlash -- though I'm hesitant to send anyone to that site now because I'm pissed at the headline they used: "Apple: You Can't Develop In Java Anymore." That is so not correct. I'm also annoyed at the misinformed posts in that thread. In short, I'm not sure why I'm mentioning the MacSlash thread except to say I'm pissed at it!


The Java platform aside from Cocoa-Java -- everything that pure Java developers care about, as opposed to an awkward hybrid -- is exactly the same as it was before Apple published this document.

There was just a thread on this here. I thought the post below made the case pretty clearly for avoiding Cocoa-Java moving forward.

--Andy

==========
    From:       email@hidden
    Subject:     Re: NO future for Cocoa-Java ?
    Date:     July 8, 2005 5:54:48 AM EDT
    To:       email@hidden
    Cc:       email@hidden

On Jul 7, 2005, at 11:00 PM, Yvon Thoraval wrote:


Following XCode documentation latest's update i've seen that :

- apple advise to switch from java to Obj-C ;


Everyone else has been advising that since the beginning!

I'm not really sure why anyone ever trusted it. Apple never really used it much themselves (publicly, anyway), so they don't have any internal pressures to keep it functional.


- no more bindings from java to cocoa interfaces after 10.4.

the seems to be linked to apple's switch to Intel proc ...


I highly doubt that it has anything at all to do with that. It's been languishing for a long time, they might as well put it out of its misery.



does that means that Cocoa-Java, never been really alive, i dead ?


Cocoa-Java has never really worked quite right, and the way they decided to implement it was a massive burden on their developers. Basically, Apple made several huge mistakes. The Cocoa-Java bridge requires:


- Mappings from every single Objective-C selector to some Java method
- A completely separate set of documentation
- Separate tests to make sure they didn't screw up anything in the mapping (I'm not convinced these ever really existed, but proper maintenance would've required them)


This is obviously way too much work for little benefit. It *might* been worth it if a lot of people were using the Java bridge, but they're not. The Cocoa-Java bridge has never been reliable nor complete.

Apple was never eating their own dog food with the Cocoa-Java bridge, despite the fact it's been available for years. There aren't any Apple applications that I'm aware of that use the Java bridge for anything, other than the maybe some WebObjects dev tools and possibly little bits of Xcode, so the Java-Cocoa bridge only really *has* to work well enough to support that. If the Cocoa-Java bridge was really a worthwhile technology, Apple would've shipped a product or two that used it in the past 5 years.

Fortunately, other bridges have taken a different and sane approach, giving a 1:1 mapping between Objective C to/from the target language. Apple's Cocoa-Java bridge is actually the only one that does things the wrong way. Many of these bridges have real applications written in them and are an active target platform for new applications, so their maintenance is guaranteed (the open source bridges, anyway).

There's no reason a third party couldn't develop a Cocoa-Java bridge that was done in a sane way, people have already done it for many other langauges (Python, Ruby, Perl, LISP, SmallTalk, etc.). Many of these are open source, so if someone wanted to develop a Cocoa-Java bridge that worked, they wouldn't have to look much farther than the PyObjC source code (the most functional and stable bridge) to see what's necessary to do it correctly.

-bob


_______________________________________________ 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: 
 >Cocoa-Java Bridge collapse (From: "Brad O'Hearne" <email@hidden>)

  • Prev by Date: Unbinding something / binding to nil
  • Next by Date: NSSlider and integer values
  • Previous by thread: Re: Cocoa-Java Bridge collapse
  • Next by thread: Inserting Special Characters into a String
  • Index(es):
    • Date
    • Thread