简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM