Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 24, 2007, 12:54 PM   #1
pigoz
macrumors member
 
Join Date: Aug 2007
Location: Milan, Italy
Send a message via MSN to pigoz
Starting with Cocoa

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
__________________
Aluminium iMac 20" 2.4Ghz C2D
pigoz is offline   0 Reply With Quote
Old Aug 24, 2007, 01:25 PM   #2
whooleytoo
macrumors 603
 
whooleytoo's Avatar
 
Join Date: Aug 2002
Location: Cork, Ireland.
Send a message via AIM to whooleytoo
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.
__________________
Mac <- Macintosh <- McIntosh apples <- John McIntosh <- McIntosh surname <- "Mac an toshach" <- "Son of the Chief"
whooleytoo is offline   0 Reply With Quote
Old Aug 24, 2007, 01:39 PM   #3
Nutter
macrumors 6502
 
Join Date: Mar 2005
Location: London, England
See this page:
http://guides.macrumors.com/Helpful_...ment_resources

I'd recommend the Hillegass book. Since you're already familiar with C, this book is perfect for you.

Don't worry about Xcode 3 and Objective-C 2. Objective-C 2 is a superset of the existing Objective-C language, so it doesn't replace anything, it just offers new features. The new features don't fundamentally change the language in any way.
Nutter is offline   0 Reply With Quote
Old Aug 24, 2007, 02:17 PM   #4
pigoz
Thread Starter
macrumors member
 
Join Date: Aug 2007
Location: Milan, Italy
Send a message via MSN to pigoz
thanks a lot for the advices, now I just need the iMac to be shipped
__________________
Aluminium iMac 20" 2.4Ghz C2D
pigoz is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Xcode or cocoa? Pajamaxllama iPhone/iPad Programming 9 Oct 22, 2013 10:01 AM
Can anyone help me with ikscannerdeviceview in cocoa rameshkumar Mac Programming 1 Apr 15, 2013 08:19 AM
BecomeAnXcoder : A free book for starting with Cocoa using Objective-C msaljaber iPhone/iPad Programming 0 Feb 7, 2013 06:30 AM
Help with my first Cocoa App eugiel Mac Programming 1 Sep 30, 2012 09:18 AM

Forum Jump

All times are GMT -5. The time now is 03:50 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC