• 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: Are cocoa frameworks language neutral?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are cocoa frameworks language neutral?


  • Subject: Re: Are cocoa frameworks language neutral?
  • From: publiclook <email@hidden>
  • Date: Sun, 12 Oct 2003 22:25:50 -0400

JNI is generally NOT needed to interface Objective-C and Java. There is a very nice and reasonably high performance Java bridge available as a standard component and everything is pretty much automatic.

I recommend doing any and all of Apple's Cocoa-Java examples as well as using available resources on the net. Search http://cocoa.mamasam.com for "Cocoa AND Java". There are not that many people using Cocoa and Java together, but some are and it does work.

On Sunday, October 12, 2003, at 08:18 PM, Jeff Galyan wrote:

You would still need to use JNI to access ObjC from Java and vice-versa, so
in that sense, Cocoa is not language-neutral. It's not like MS .NET CLR,
where pretty much any language can access bits written in any other language
without any special work on the part of the programmer (and without any
penalty), which is what I sense the question is leaning towards. I remember
reading some time back about some "Cocoa-Java Bridge" (or something like
that) that was supposed to let ObjC and Java interact seamlessly, but I
don't know if that ever materialized or, if it did, if it's faster or slower
than JNI. I haven't seen any talk about that since before Mac OS X 10.0
release.

So, "impedance mismatch" has a dual meaning here: on the one hand, there is
a performance hit for using JNI to bridge between native and Java code (for
calls between), and on the other hand, Java code tends to run a bit slower
than native code anyway.

"might not have the best feel" most likely refers to that performance hit.
It's faster and more responsive for the user if you leave out the Java
pieces.


Best,

Jeff




On 10/12/03 4:27 PM, "Vineet Bhatia" <email@hidden> wrote:

What do you mean by might not have the best "feel"?
And impedance mismatch?

Have you worked on any projects which have the framework written to access
business tier in java and all the UI components in Objective-C?

Are there any examples available online?

- vineet


From: Chris Hanson <email@hidden>
Date: Sun, 12 Oct 2003 17:40:03 -0500
To: email@hidden
Subject: Re: Are cocoa frameworks language neutral?

On Saturday, October 11, 2003, at 09:52 AM, Vineet Bhatia wrote:
If I write a cocoa framework in Java would I be able to use it from
Objective-C?

I think so. However, it might not have the best "feel" in Objective-C
because of the impedance mismatch between the languages.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.
_______________________________________________
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: Are cocoa frameworks language neutral?
      • From: Matt Lehrian <email@hidden>
References: 
 >Re: Are cocoa frameworks language neutral? (From: Jeff Galyan <email@hidden>)

  • Prev by Date: Re: Are cocoa frameworks language neutral?
  • Next by Date: Re: Some small utility for Mac OS X.
  • Previous by thread: Re: Are cocoa frameworks language neutral?
  • Next by thread: Re: Are cocoa frameworks language neutral?
  • Index(es):
    • Date
    • Thread