Then a year ago I converted to a Macbook Pro (It helps to have one's own company). This is indeed the nicest machine and OS I've ever done Java development on. I was so happily coding away, using the Eclipse IDE and Leopard's built-in Subversion for version control.
That is, until a project at one of my clients went over to Java 6.
So I went to Apple and downloaded the latest Apple 64bit JDK (Java 1.6.0_05). This would have worked, but... guess what? The Mac OS X SWT (see Eclipse) is not supported by the new Apple Java 6 JDK, as SWT is based on Carbon native code, and the 64bit Java 6 JDK only supports Cocoa... [Anyone with tips on how to run Eclipse RCP apps - including the Eclipse IDE - with the Java 6 VM, please contact me.]
So what to I do? For non-SWT code everything is fine. For SWT code: I code blindly on the Mac side of things, check in to svn, fire up Parallels with a Windows VM, get from svn, compile it in the VM's Eclipse and run. Ultimately non-efficient, yes. I do find though that this way of working has dramatically improved my ability to visualise a GUI by looking at the code :-)
And the NextStep? Starting to learn the NextSTEP-based Cocoa Framework (what I've seen up to now: Awesome!) so that I can perhaps give a hand with porting SWT on the Mac from Carbon to Cocoa (as Apple does not seem that keen on having Java 6 support Carbon...)

0 comments:
Post a Comment