Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pigoz

macrumors member
Original poster
Aug 24, 2007
85
0
Milan, Italy
One of the main reasons I wanted to switch to a Mac is to program with the Cocoa API. I wanted to ask what should I start reading before getting my hands dirty with it. Books, tutorials, guides, everything is welcome ;) (I'm very familiar with C and JAVA, so I'd appreciate a lot something that gets into advanced topic rapidly).

Btw, do you think its better to wait for Xcode3 and Obj-C 2 to get out? I read Ob-C2 will not be retrocompatible, so I assume it will be quit different. I don't want to lean something that will get outdated in to months or so.. :)

thanks for reading and for the replies :D
 

whooleytoo

macrumors 604
Aug 2, 2002
6,607
716
Cork, Ireland.
http://www.cocoadevcentral.com
http://www.macdevcenter.com

Two of the best links, with plenty of tutorials.

As with learning most things, it's easiest when you have a specific goal/project in mind to keep you focused; so I'd recommend putting together a project (such as, say, a media library app) which requires knowledge of several areas (persistent storage, list/table views, image/video views, etc.)

Then you can build your experience - using the tutorials above - piece by piece. For example:
1) Build an application that scans a folder on the hard drive and makes a list of all the media (image, sound & movie) files.
2) Display a window with a list view which shows the list you've built.
3) Display a preview window for the selected file when double-clicked (use QuickTime to display/play the file).
4) Save the list on exit, and load it on launch, so you don't have to scan every time.

The classes which will be especially useful: NSString (for managing paths), NSWorkspce (for browsing directories), NSMutableArray (for storing collections of any kind of Cocoa objects, such as NSStrings). Xcode has an excellent documentation browser for find references for these classes.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.