Search code examples
c++objective-ccocoamacos-carbon

Carbon to Cocoa conversion library?


Does anyone know of a library that has a C++ Carbon API to call equivalent 64-bit Cocoa functions? I need to port a Carbon-based 32-bit C++ app to 64-bit, but am dreading having to code for Cocoa in Objective C.

Thanks!

Bill


Solution

  • The only available mechanism is to learn the new platform and write the application or library anew. There are many differences between Carbon and Cocoa. The latter, for example, follows the model/view/controller design pattern. A lot of other differences abound (for example, the drawing system is completely different). A direct mirroring between the two would be shaky at best but is just not a good idea.

    In short: do yourself and your users a favor and learn the new platform. Very fortunately, Cocoa really is quite a pleasure to work with by comparison.