• 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: JavaBeans in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaBeans in Cocoa


  • Subject: Re: JavaBeans in Cocoa
  • From: John <email@hidden>
  • Date: Wed, 28 Apr 2004 15:20:33 +0100

Hi,
Correct me if I'm wrong, but I think the op was asking about Java Beans as opposed to Enterprise Java Beans...
As in can they be used like a cocoa plug-in in Interface Builder...

John.

On 27 Apr 2004, at 12:31, Steve Franks wrote:

Yes, its quite possible, I do it frequently!
Basically, just like a Swing client, you need the "client" side JAR library from the EJB application, and maybe the JNDI setup file (properties).

Just working on getting the new "bindings" to work with my Cocoa/Java/EJB, seems like it will be a good for popup menus from a list of EJB value objects.

The JBoss J2EE app server is a custom install on the developer cd (and now a new stand-alone download from apple developer web site)

The biggest "gotcha" for Cocoa/Java imho are:
+ You get some unhelpful error messages sometimes
+ If you pass a Java object over to Cocoa-land (e.g. the owner of a NIB you are loading, or table source) you must make some artificial
java reference to it to prevent it from getting garbage collected, thus causing a seg fault in the cocoa program.




On Apr 26, 2004, at 22:44, Christian Kaiser wrote:

Hi,

I'm quite new to Cocoa, so it might be a stupid question...

Is it possible to integrate JavaBeans into a Cocoa-Java-Application? If
so, does somebody have an example, or documentation?

I've got a huge library in a couple of JAR-files and in this library,
there are some JavaBeans as well.

Thanx!
Chris
_______________________________________________
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.



Steve Franks
adenzo software - http://www.adenzo.com/
_______________________________________________
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.


References: 
 >JavaBeans in Cocoa (From: "Christian Kaiser" <email@hidden>)
 >Re: JavaBeans in Cocoa (From: Steve Franks <email@hidden>)

  • Prev by Date: Re: clickedOnLink called outside of the link
  • Next by Date: Re: iPhoto plugin source
  • Previous by thread: Re: JavaBeans in Cocoa
  • Next by thread: Calling setFrameAutosaveName
  • Index(es):
    • Date
    • Thread