开发者

Objective-C versus C, which one is a better language on the Mac? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago. 开发者_如何转开发

What is better to program on Macintosh? Is it worth it learning Objective-C along the Cocoa API?

I'm thinking about building a desktop editor for online applications such as Content Management Systems and was wondering what was the less painful path.


Absolutely. If you want to write software for Mac OS X or iOS learning objective C and cocoa goes without saying. The Cocoa framework makes your life easier. Of course C can also be included in your code if needed. Its usually a good idea to at least have an understanding of core fundamentals in C when learning Objective-C.

finally, this question is subjective and not really the proper place to be asking it. :)


Programming Mac in straight C is on the way out. There was quite a scandal recently about the fact that the C-based Carbon toolkit was not ported to 64 bits. Cocoa was ported. So there are signals coming from Cupertino that they're going to phase out Carbon eventually.


Are you targeting Apps for Mac and iOS? Objective C should make things easier.


If you want to build GUI applications, you definitely want to learn objective-c. Apple is removing support for much of the Carbon API, and it isn't supported at all for 64 bit applications.

If you are not going to build GUI applications, I would still suggest learning objective-c, even though it isn't necessary. Objective-c is easy to learn if you already know C, and I find that I can build an application much faster using it. Apple has made a lot of things much easier in their objective-c APIs, and they are kind of moving toward even deeper integration of the language.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜