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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.