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.
精彩评论