![]() I agree with PsychoH13. Using the command line tool in Xcode or g++ in the terminal will be enough to work with your book. But if you ever want to develop MacOS X user interfaces, you may want to re-evaluate Cocoa. There is no C++ option for that. You can use Cocoa, which is Objective-C, or Carbon, which is C. There is some support (examples, documentation, etc.) for writing user interfaces with Carbon, but it is quite difficult. ![]() Most modern Mac apps are written in Cocoa for all the nuts-n-bolts, and Carbon, for those things that don't exist in Cocoa. There usually isn't much C++. PsychoH13 wrote: Well, Carbon is in C++. And also in C, but there' a big part in C++. Which part is that? You can write C++ applications using Carbon, but the API itself is pure C. No templates, no objects, no classes, no C++. There are 'opaque references' throughout Carbon. They behave in a somewhat object-oriented manner through the C API. If you want to use those 'opaque references' as objects, you must do so in Objective-C, because they are, in fact, Objective-C objects. Apple did have true, C++ frameworks with OpenDoc and MacApp, but they are long dead. Metrowerks tried one with Powerplant, which is also dead. Microsoft's MFC was/is in pure C++ and I think Qt is as well. Oh, and there's one last thing I've forgotten about Swift/Obj-C that makes it hell on dead code analysis: the Objective-C runtime. Because of how it works and the fact that any random chunk of code can reference types and methods by name, you can't really strip classes that wind up in the runtime. I gave up on Cocoa well because. Cocoa would have been my first programming language. I wrote a program. And even though I copied the code line for line from the book and checked the solutions guide. It wouldnt run. Someone from the apple forums said he would help me via AIM. And he suggested that I should learn something easier for now like C++ or java. Then maybe I could try Cocoa again. I hardly understand anything in Cocoa. But since Cocoa is a framework of Objective C. Which is an Extension of C. And a superset of C++ or the otherway around or whatever. Once I master C++ i should be able to do Cocoa right? If I wanted to do it in terminal. How do I activate the g++ thing? Im only familiar with MS DOS with lolWindows for inputing commands. Well that's not necessarily a good idea. Link Shell Extension - Schinagl User guide: BIOS files OpenEmu/OpenEmu Wiki GitHub Removing IE Addon 'Lync Browser Helper' - Herong Yang R: Download File from the Internet - ETH Z Download an Extension (.crx file) WITHOUT installing it. LDM File Extension Info - How to Fix and Open LDM File. Full_portable_on_mac_1011_PDF_ (@full_portable_on_mac_1011. Yellowpipe Viewer in title. Re: lynx-dev lynx for mac. Yellowpipe Viewer Developer Tools, Freeware, $0.00, 25.0 KB. C++ will teach you OO concepts like inheritance, objects, etc. But the way to think object-oriented programming is not the same in C++ and Objective-C (the language used by Cocoa). Objective-C is a strict superset of C, and not C++, C++ is a different language based on C, a far cousin of Objective-C. If you don't understand C, you most likely won't understand Objective-C. Because it is really C with a thin object-oriented layer doubled with a runtime. The compiler simplifies things for you, but after all it's only a C object-oriented programming. I think you should start understanding C and Objective-C way to behave and then learn Cocoa. C++ won't help you greatly. No no, in the contrary, if you want to develop for Mac, it's extremely recommended to learn Cocoa, but if you don't understand C or Objective-C (which is the same, just the syntax differs a little.) well, start by that! It's no use to learn an API if you don't understand the language that's used for it. It's like writing a novel in russian when you only know english. So first, learn C and Objective-C and you will be able to work with Cocoa, you can of course learn Objective-C along with Cocoa, but be sure to understand what you write. PS: If you use an instant talk app I can help you out with Objective-C/Cocoa. Message was edited by: PsychoH13. I dont expect to get it in a few days. But when Im reading it. And inputing the code from the exercises. And I have no idea what does what or understand what something is. It defeats the purpose of me doing it in my opinion. I dont think I need courses to help me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |