Im wondering what is the differences or benefits of using java rather than object c to build cocoa applications. Or indeed is java the language of choice.
Not if you're using Cocoa bindings though.bousozoku said:Using Java will make it easier to run whatever you create on multiple platforms.
Again you could say the same about writing Cocoa apps in Java.Using Objective-C is a great way to write applications for Mac OS X but they will generally stay there because, with the exception of GNUStep, there isn't much else out there that's code compatible in the least.
Of course you wouldn't have cocoa bindings, core data, spotlight, or .mac integration as well as a ton of other stuff that Objective-C/cocoa developers take as a given. Saying it's just the services menu you get from using Cocoa is ignorant and misleading.peharri said:Either:
- write your app in Objective C
- write in Java, but use the Java libraries where possible rather than Cocoa. You can still make Java applications that look, feel, and run like Cocoa programs unless you're doing something very obscure.
The benefits of the former are slightly better integration with OS X (if you want to create Services, for instance (you know, the "Services" submenu of the application name's menu. What? You never use that? Wow, and I thought it was just me ;-) Additionally, XCode integrates very well with it.
dr_lha said:Not if you're using Cocoa bindings though.
Again you could say the same about writing Cocoa apps in Java.
Just as you can write Java apps that are portable to other platforms by not using Cocoa, you could write Objective-C programs that are portable to other platforms.
As the guy wants to write Cocoa apps, I'm guessing cross system portability is not high on his agenda.
caveman_uk said:Of course you wouldn't have cocoa bindings, core data, spotlight, or .mac integration as well as a ton of other stuff that Objective-C/cocoa developers take as a given. Saying it's just the services menu you get from using Cocoa is ignorant and misleading.
I love Python, I just wish for two things from it:dr_lha said:Personally out of Objective-C and Java for Cocoa programming I choose..... python.
Yeah, I wasn't being entirely serious - although I do code everything these days python, most of the stuff I need to write are command line tools, and the only GUI stuff I've done with it is some minor Tkinter stuff.HiRez said:I love Python, I just wish for two things from it:
1. Native Cocoa API for it. The Py-ObjC bridge kind of works, but isn't exactly elegant.
2. A real, modern, comprehensive framework for web applications á la Ruby on Rails.
I love the Python language but it's lacking in terms of strong built-in GUI support and web platform services. I haven't tried much with Ruby yet, but I don't like the syntax nearly as much as Python.
HiRez said:I love Python, I just wish for two things from it:
1. Native Cocoa API for it. The Py-ObjC bridge kind of works, but isn't exactly elegant.
2. A real, modern, comprehensive framework for web applications á la Ruby on Rails.
I love the Python language but it's lacking in terms of strong built-in GUI support and web platform services. I haven't tried much with Ruby yet, but I don't like the syntax nearly as much as Python.
Agreed. It would be really nice if Apple picked up Python and PyObjC as their "managed code" programming environment.AlmostThere said:1. I am not sure how the first point would be addressed without creating a maintenance nightmare. While it does feel a little odd to start with, I have found that it actually becomes very easy to use especially with the wealth of existing Cocoa documentation. It would be nice if Apple took it on formally as a RAD environment, which OS X seems to lack at the moment. It seems like it would be a lot of effort for not much, if any, benefit but feel free to elucidate.
Objective-C isn't as widely used as Java (not that that's a good or bad thing), and there's almost no incentive to use objc for development without using open/gnustep or cocoa, which would lead to the fact that it's pretty much only the Mac OS X people who are using objc for anything (sorta lame)bousozoku said:Both languages are quite amazing and are more similar in thought than in style. Java is growing but Objective-C is holding steady after 20+ years.