将应用程序从碳转移到可可 [英] migrating an application from carbon to cocoa

查看:158
本文介绍了将应用程序从碳转移到可可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,其中我需要将它的整个代码从碳迁移到可可。我有编程C,C ++,python和Java在我的大学时间和实习期间的经验,但从来没有接触过目标C或者在此之前对Mac(Carbon和Cocoa)进行任何编程。

I am working on an application in which I need to migrate the whole code of it from carbon to cocoa.I have experience in programming of C,C++,python and Java during my college time and internship but have never touched objective C or have done any programming for Mac(Carbon and Cocoa) before this.

所以,你能建议我一些开始的源,迁移?

So Can you please suggest me some sources to start with, also how should I go about the whole migration ?

在研究网络后,我发现大多数人都建议下面的书

After researching on net I have found that most the people have suggested following books

Cocoa编程Mac®OS X,第三版由Aaron Hillegass提供

Cocoa Programming for Mac® OS X, Third Edition by Aaron Hillegass

Objective C中的编程 - Stephen Kochan

Programming in Objective C - Stephen Kochan

这两本书。

我应该先阅读它们,然后应该从代码更改开始? (需要一些时间来阅读这两个)

Should I read them first and then should start with the code change? (it will take some time to read both of these)

C和Cocoa,我应该直接开始代码迁移吗?

after having a decent fimiliarity with Obj C and Cocoa, should I directly get started with code migration?

另外,

知道碳,我应该参考什么来学习碳有足够的知识将碳代码迁移到可可?

since I don't know carbon , what should I refer to learn carbon to have sufficient knowledge to migrate the carbon code to cocoa?

推荐答案

Carbon,以便您可以阅读该程序并了解其当前的实现方式。

First, learn Carbon so you can read the program and understand how it's currently implemented.

在Xcode中安装Legacy文档集以访问Carbon指南。您需要阅读碳概览,然后 Carbon Getting Started with Carbon ,那么入门指南链接到的所有内容。你还需要学习核心基金会,其中一些更现代的部分碳使用;请阅读核心基础设计概念 Core Foundation的内存管理编程指南

Install the Legacy documentation set in Xcode to gain access to the Carbon guides. You'll want to read the Carbon Overview, then Getting Started with Carbon, then everything that Getting Started links to. You'll also need to learn Core Foundation, which some of the more modern parts of Carbon use; read Core Foundation Design Concepts and the Memory Management Programming Guide for Core Foundation.

可可。

我没有学习Hillegass的书,但很多人发誓。我目前最喜欢的Cocoa书籍是Scott Stevenson的Cocoa and Objective-C:Up and Running。我学习Cocoa的方式是使用苹果自己的文档。从 Objective-C编程语言开始, Cocoa基础指南,以及 Cocoa的内存管理编程指南。最后一个文档的大部分内容似乎都很熟悉,但不会跳过任何内容。

I didn't learn by the Hillegass book, but a lot of people swear by it. My current favorite Cocoa book is "Cocoa and Objective-C: Up and Running" by Scott Stevenson. The way I learned Cocoa was using Apple's own docs. Start with The Objective-C Programming Language, the Cocoa Fundamentals Guide, and the Memory Management Programming Guide for Cocoa. Much of the last document will seem really familiar, but skip nothing. Read every one of those guides from beginning to end and all the way through.

一旦你学习了Cocoa的一般概念,你就可以继续阅读更多应用特定材料。从应用程序体系结构概述开始,并查看该文档链接的大部分内容。 Cocoa指南列表包含完整的指南列表。

Once you've learned Cocoa's general concepts, you can move on to more application-specific material. Start with the Application Architecture Overview and most of what that document links to. The Cocoa Guides list has the full list of guides.

在路上,您还需要使应用程序与64位模式兼容。如果您目前仍有任何碳密码,则需要阅读 64-碳开发者指南;无论哪种方式,您还需要一般的 64位过渡指南可可的64位过渡指南

Down the road, you'll also need to make the application compatible with 64-bit mode. If you still have any Carbon code by that point, you'll need to read the 64-bit Guide for Carbon Developers; either way, you'll also need the general 64-bit Transition Guide and the 64-bit Transition Guide for Cocoa.

这篇关于将应用程序从碳转移到可可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆