iDevGames Forums
Cocoa & openGL - Printable Version

+- iDevGames Forums (
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Cocoa & openGL (/thread-7225.html)

Cocoa & openGL - Muffinking - Mar 16, 2003 10:27 PM

Are there any decent tutorials available on the net that will explain the workings of Cocoa? I am fairly adept with Java now, and object oriented programming in general so I want to learn Cocoa so i can start writing software and games for OS X and leave carbon behind for good.

or should I just suck it up and buy a book on it? if so, are there any good book out that cover Cocoa with a fair amount of detail?

Also, what are the essential books I must have ( or that any intellignt programmer has) about OpenGL? I really want to learn the API, it seems to play very nicely with Cocoa.

Cocoa & openGL - Feanor - Mar 16, 2003 10:35 PM

Hey, how's it goin'?

Ideally buy a book. I've got three, though, so you can borrow one if you feel like trekking into Toronto. I'm pretty much finished with Aaron Hillegasse's.

But, first: have you read Inside Cocoa? If not, I strongly urge you to.

Next, write some Cocoa tools and do some things with the Foundation classes, even just one or two projects to get practise with Strings, Arrays and other containers, and such. I'm always telling people "Don't go straight into AppKit or you'll confuse yourself." I stand by that. Foundations first, houses second.

For more specific stuff, see if it's in the MacGame FAQ, first. There are probably FAQs to address your questions already, but I'm too lazy to look up the pointers.

As for OpenGL and Cocoa, well, any C interface works in Cocoa, but it won't feel as "nice" once you are used to messaging -- it will feel "old fashioned".

Cocoa & openGL - kelvin - Mar 17, 2003 12:49 AM

Personally I got one book: O'Reilly's Building Cocoa Apps. This was enough to get the basics of the AppKit into my head. As for OpenGL, I just rammed my head against the internet untill I successfully implemented OpenGL in Cocoa. All the info is out there on the web, even though it's in a million tiny pieces. Really all you need for OpenGL basics is the red book and that's available online.

All in all, it's really not that difficult.