Appendix A. Objective-C
In This Chapter
• Summarizing Objective-C
• Looking briefly at memory management
• Using properties
• Merging Cocoa into Objective-C
Xcode is built for Cocoa development, and Cocoa development is not language-neutral. Cocoa doesn’t work without Objective-C. C++ is an object-oriented language, but that isn’t enough; it can’t do the dynamic dispatch that Cocoa relies on, and there are no Cocoa bindings for C++. Apple tried supporting Cocoa-in-Java in early versions of Mac OS X, but the match wasn’t perfect, it was hard to maintain, and nobody used it.
Note
If you’re writing for Mac OS X, Cocoa isn’t absolutely Objective-C. There are bindings to Cocoa—through bridges to the Objective-C runtime—for Ruby and Python, which ...
Get Xcode® 4 Unleashed, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.