Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jeremy.king

macrumors 603
Original poster
Can you intermix languages when writing a Cocoa application? I would love to leverage some of my java skills, as well as some Open Source APIs, AND use Obj-C...I know when you start a project, it asks what language you are going to use. Has anyone done this? Is it possible?
 
Thanks Meow.

I just can wait til I get my two books (hopefully today), so I can get started on writing Apps for OS X.
 
While you can't use Java and Obj-C together, you can use Obj-C and C and C++ together (known as Objective-C++). You give your implementation files a .mm extension, and so long as you use right Obj-C vs. C++ syntax for the right objects, you'll have no problems.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.