One of the major ones is that C++ supports multiple inheritance while Objective-C does not.
Good analogy.Edit to add: This question is a bit like saying "I'm an English speaker. Are French and German the same?"
Edit to add: This question is a bit like saying "I'm an English speaker. Are French and German the same?"
You are most kind!I could be quite pedantic with that but I'll save it for myself.
I could be quite pedantic with that but I'll save it for myself.
What? And deprive of us of a tiny amount of amusement or interest late on a Friday afternoon? I say post it...
Hey, for some of us it's the middle of the morning!
so there's no benefit to studying C++ for mac programming? advancing from studying C to Objective-C is a good path to follow?
so there's no benefit to studying C++ for mac programming? advancing from studying C to Objective-C is a good path to follow?
so there's no benefit to studying C++ for mac programming? advancing from studying C to Objective-C is a good path to follow?
do ruby and python have any advantages over cocoa?
do ruby and python have any advantages over cocoa?
so there's no benefit to studying C++ for mac programming? advancing from studying C to Objective-C is a good path to follow?
I will say though, I see more C code than C++. I'm not really sure why that is. Anyone want to give some insight into that?
Cocoa is an Objective-C API, not a language. As of Leopard you can now access the Cocoa API from python or ruby.
I don't consider any language superior to any other. The only comparison is for the task at hand. If you're doing something that is well-suited to Objective-C, use that. If you're doing something well-suited to python or ruby, or you are more comfortable performing the task with those tools, go for it.
-Lee
Ruby/Python are languages. Cocoa is a library of code accessible via Objective-C, but you can also access it via Ruby and Python (and others) in Leopard (and in Tiger via third-parties).
C++ is still useful if you're doing Mac programming. A lot of open source code you may want to use is written in C++. Also a lot of older programs for the Mac still use C++ underneath. Also it's great for writing cross platform code. Put most of your logic in C++ and write native UI wrappers around it.
I will say though, I see more C code than C++. I'm not really sure why that is. Anyone want to give some insight into that?