Skip navigation.
 
mlRe: Java Cocoa Bindings: not yet implemented?!
FROM : Scott Stevenson
DATE : Mon Apr 04 21:48:21 2005

On Apr 4, 2005, at 2:32 AM, Rémy Schumm wrote:

> combining a post of Scott Anguish and very lots of trying of myself
> lead me to the conclusion:
>
> something as simple as [contentObject setTheString:@"Guten Tag"];  in
> ObjC which will perfectly update the NSTextField which is bound to the
> property "theString" will NOT work in Java, because KVO does not work
> in Java, neither automatically nor manually.


Java is always going to play second fiddle to Objective-C because Cocoa
takes advantage of language features that Java doesn't have.

Add to that:

1. Virtually all Cocoa code is in Objective-C
2. Objective-C is really easy to learn if you know Java
3. Objective-C provides access to Java code

Java is a good language, but you're making things way too hard on
yourself by using it for Cocoa apps. This is especially true if you're
new to Cocoa.

If you simply can't use Objective-C for some reason, you might consider
PyObjC, which allows you to write Cocoa apps in Python.


  - Scott


--
http://treehouseideas.com/
http://theocacao.com/ [blog]

Related mailsAuthorDate
mlJava Cocoa Bindings: not yet implemented?! Rémy Schumm Apr 4, 11:32
mlRe: Java Cocoa Bindings: not yet implemented?! Scott Stevenson Apr 4, 21:48
mlRe: Java Cocoa Bindings: not yet implemented?! Rémy Schumm Apr 5, 10:13
mlRe: Java Cocoa Bindings: not yet implemented?! Jake Macmullin Apr 6, 01:19