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

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 30, 2007, 12:42 AM   #1
valiar
macrumors regular
 
Join Date: Mar 2006
Location: Berkeley, CA
Send a message via ICQ to valiar
Best book to learn Cocoa and Objective C?

Well, I know there is no single "best" book...

But what books do you like, what books do you not like, and what would you recommend?

All the major programs I have been writing so far are in Java, and I like Java - but I really want to switch to Mac-specific language for the reasons of performance and interface prettiness.
valiar is offline   0 Reply With Quote
Old Jul 30, 2007, 01:02 AM   #2
iSee
macrumors 68040
 
iSee's Avatar
 
Join Date: Oct 2004
The single best book for Objective-C is "Programming in Objective-C" by Stephen G. Kochan.
iSee is offline   0 Reply With Quote
Old Aug 4, 2007, 01:14 PM   #3
Littleodie914
macrumors 68000
 
Littleodie914's Avatar
 
Join Date: Jun 2004
Location: Rochester, NY
And for Cocoa programming, the hands-down champ is Aaron Hillegass' "Cocoa Programming for Mac OS X: Second Edition."
Littleodie914 is offline   0 Reply With Quote
Old Aug 4, 2007, 02:39 PM   #4
Alloye
macrumors 6502a
 
Join Date: Apr 2007
Location: Rocklin, CA
Quote:
The single best book for Objective-C is "Programming in Objective-C" by Stephen G. Kochan.
Quote:
And for Cocoa programming, the hands-down champ is Aaron Hillegass' "Cocoa Programming for Mac OS X: Second Edition."
I second both of these nominations.
Alloye is offline   0 Reply With Quote
Old Aug 4, 2007, 03:06 PM   #5
azizane
macrumors member
 
Join Date: Nov 2006
I third that! , i would start by reading the objective c book first
azizane is offline   0 Reply With Quote
Old Aug 4, 2007, 03:46 PM   #6
mrfrosty
macrumors 6502
 
Join Date: Oct 2005
Would you say the give the same recommendations for me if i told you i hadn't really done any programming since a little pascal at University some some 12 years ago ?
__________________
MrFrosty
mrfrosty is offline   0 Reply With Quote
Old Aug 4, 2007, 04:09 PM   #7
MacDonaldsd
macrumors 65816
 
MacDonaldsd's Avatar
 
Join Date: Sep 2005
Location: London , UK
I have both sitting beside me know. Id recommend the both of them. As you are not a programmer currently in any language, you really need the both of them.
MacDonaldsd is offline   0 Reply With Quote
Old Aug 4, 2007, 04:41 PM   #8
azizane
macrumors member
 
Join Date: Nov 2006
Quote:
Originally Posted by mrfrosty View Post
Would you say the give the same recommendations for me if i told you i hadn't really done any programming since a little pascal at University some some 12 years ago ?

sure, the objective c book is very basic and is written to help you getting started in objective c. after finishing that you can jump in the cocoa book
azizane is offline   0 Reply With Quote
Old Aug 4, 2007, 04:46 PM   #9
jsw
Moderator emeritus
 
jsw's Avatar
 
Join Date: Mar 2004
Location: Andover, MA
One item to note is that Objective-C is significantly enhanced in Leopard, so note that some of the things in those books are going to be outdated.

Not a lot, and not so much as to be a problem. Just some of the painful things have been fixed.
__________________
You'll be the one moaning for me to give you some. - THC(taken out of context)
jsw is offline   0 Reply With Quote
Old Aug 4, 2007, 05:16 PM   #10
MacDonaldsd
macrumors 65816
 
MacDonaldsd's Avatar
 
Join Date: Sep 2005
Location: London , UK
Quote:
Originally Posted by jsw View Post
One item to note is that Objective-C is significantly enhanced in Leopard, so note that some of the things in those books are going to be outdated.

Not a lot, and not so much as to be a problem. Just some of the painful things have been fixed.
I think you can still use the old syntax though can't you ?
MacDonaldsd is offline   0 Reply With Quote
Old Aug 4, 2007, 05:18 PM   #11
jsw
Moderator emeritus
 
jsw's Avatar
 
Join Date: Mar 2004
Location: Andover, MA
Quote:
Originally Posted by MacDonaldsd View Post
I think you can still use the old syntax though can't you ?
Yup, at least for the most part, as far as I know. Some of the tedious bye necessary garbage collection, etc., tasks have been made easier or eliminated, though.

The demo I saw in January of all the spiffy new features reminded me a lot of how eclipse was with Java years ago, but still....
__________________
You'll be the one moaning for me to give you some. - THC(taken out of context)
jsw is offline   0 Reply With Quote
Old Aug 5, 2007, 01:48 AM   #12
x704
macrumors regular
 
Join Date: Apr 2006
I would like to add to that a C book or two. Objective-C is basically C only with OOP built in, so all C stuff applies to Objective-C as well. I have a couple C books in addition to the Objective-C one that everybody adores... good stuff
__________________
You can fix anything with a screwdriver and a bigger hammer.
http://www.wneary.com/
x704 is offline   0 Reply With Quote
Old Sep 17, 2008, 12:14 PM   #13
typoboy
macrumors newbie
 
Join Date: Sep 2008
Location: Metro Washington, DC
Best Devel environment

This is a perhaps related question from a Mac development novice: What would you suggest is a "best" development environment for learning to program for the MAc/iPhones, etc.

I have my eyes on a MacBook (blk) and the iPhone SDK, since my interest is in developing apps for the iPhone. Recommendations would be appreciated.

TypoBoy
Washington, DC USA
typoboy is offline   0 Reply With Quote
Old Sep 18, 2008, 06:37 AM   #14
JonnyThunder
macrumors member
 
Join Date: Aug 2008
I'd doubt there is anything much better than XCode for iPhone development considering it has the iPhone simulator build in.
JonnyThunder is offline   0 Reply With Quote
Old Sep 18, 2008, 09:36 AM   #15
liptonlover
macrumors 6502a
 
Join Date: Mar 2008
I would recommend hillegass, (third edition is the latest, idk why they're recommending 2nd) and from what I've heard kochan too. (heaven't used it)
But really, I think free online tutorials are way better than books. The best tutorial I've seen is becomeanxcoder at www.cocoalab.com it's a little out of date but recent enough that it's easy to figure what's what. The tutorial assumes you don't have any programming knowledge, which makes it great for anyone between that and being a cocoa/objc expert. So yeah... it's an awesome tutorial.

You can also get in depth into C, which may be smart, and C++ too if you're interested, at www.cprogramming.com. I used it and it's a great place. I never understood pointers until I went there.

Good luck!
Nate
__________________
Failure is not an option. It comes bundled with Windows.
Writing portfolio
liptonlover is offline   0 Reply With Quote
Old Sep 19, 2008, 07:44 AM   #16
typoboy
macrumors newbie
 
Join Date: Sep 2008
Location: Metro Washington, DC
Thanks for the tips

I'm great for beginning projects and not seeking out the advice and help I need to complete them. So I'm taking a different approach here, and it has helped already. You have confirmed my suspicion that I should focus on Objective-C, and the digital book in the Cocoalab starts at a great place for me.

I should share something else I came across yesterday, a great post by a guy, Mike Ash. In his post, he chronicles his ordeal with Apple, as he worked through getting an iPhone app approved. I feel that, bottom line, the hassle one goes through is frustrating and to some degree unnecessary; but that you get a lot of value (enormous, inexpensive market exposure for you app). Whatever your opinions, the post should be sobering to folks who, like me, had plans to download the iPhone SDK, whip up a quick app, and go on to, in my case, revolutionize the non-profit world by porting a database of volunteer and charitable giving opportunities to the iPhone. Seems it just happen so simple, even for an experience Mac developer:

http://www.mikeash.com/?page=pyblog/...ent-story.html

tanx
TypoBoy
typoboy is offline   0 Reply With Quote
Old Oct 18, 2008, 10:51 AM   #17
t0mat0
macrumors 601
 
t0mat0's Avatar
 
Join Date: Aug 2006
Location: Home
Bear in mind that time has passed, and Apple was basically setting up the App Store from scratch. I'd imagine that some of the problems experienced have been smoothed over.
__________________
Whither Skylake?
t0mat0 is offline   0 Reply With Quote
Old Dec 23, 2008, 01:07 AM   #18
softweyr
macrumors newbie
 
Join Date: Dec 2007
Location: San Diego
Updated

Both of the books mentioned in this thread have been updated recently. I have the 3rd edition of Hillegass at hand (well, on the coffee table). If you know C, you probably won't need a book on Objective-C just to get going with Cocoa programming. Get the Hillegass book, look at his introductory chapter, and start slinging some code.

If you're not already a C or C++ programmer, I can recommend the Kochan book just on the basis of having been a Stephen Kochan fan for 20+ years. I've looked through it at the LBS, and hope it will be in my stocking in a few days. In the meantime, I've written a couple of Cocoa Apps already, and am working on my third now. Do get the updated edition, which covers the new language features, and forget about memory management (until it bites you).
softweyr is offline   0 Reply With Quote
Old Dec 28, 2008, 09:58 PM   #19
skochan
macrumors regular
 
Join Date: Apr 2006
Location: California
 
Quote:
Originally Posted by softweyr View Post
I can recommend the Kochan book just on the basis of having been a Stephen Kochan fan for 20+ years.
Hey, thanks for making me feel old! Seriously, thanks for the kind words.

FYI, The second edition of my Obj-C book will be released this week. There's another thread here that describes some of the changes I've made.

Cheers,


Steve Kochan
skochan is offline   0 Reply With Quote
Old Jan 2, 2009, 12:54 AM   #20
lymanicempire
macrumors newbie
 
Join Date: Jan 2009
Quote:
Originally Posted by skochan View Post
Hey, thanks for making me feel old! Seriously, thanks for the kind words.

FYI, The second edition of my Obj-C book will be released this week. There's another thread here that describes some of the changes I've made.

Cheers,


Steve Kochan
Thanks, Steve. Guess who just preordered it on Amazon?
lymanicempire is offline   0 Reply With Quote
Old Jan 3, 2009, 12:39 AM   #21
TodVader
macrumors 6502a
 
TodVader's Avatar
 
Join Date: Sep 2005
Location: Quebec, Canada
I preordered a long time ago. I hope amazon.ca gets it soon. It's now 'in stock' at amazon.com.
__________________
TodVader is offline   0 Reply With Quote
Old Jan 3, 2009, 03:00 AM   #22
thekrazykid
macrumors newbie
 
Join Date: Dec 2008
how much objective-c does the hillegass book assume that you know? if i know python and quite a bit of java will i be able to read this book without reading a book about objective-c first?
thekrazykid is offline   0 Reply With Quote
Old Jan 5, 2009, 01:06 AM   #23
softweyr
macrumors newbie
 
Join Date: Dec 2007
Location: San Diego
Quote:
Originally Posted by thekrazykid View Post
how much objective-c does the hillegass book assume that you know? if i know python and quite a bit of java will i be able to read this book without reading a book about objective-c first?
If you don't already know a pointer-based language, especially C or C++, you're probably going to get lost as soon as you encounter any pointer-based code. That's somewhat rare in Obj-C, other than declaring pointers to objects, but you'll bump into it sooner or later.

I'd recommend getting the Hillegass book, working through the examples, and then dive into Obj-C on the side once you get lost.

For an old C/C++ programmer, picking up enough basics of Obj-C to pound out a Mac application is pretty simple process. I know, I did it.
softweyr is offline   0 Reply With Quote
Old Aug 5, 2009, 02:54 PM   #24
quid squid
macrumors regular
 
Join Date: Aug 2008
Location: los angeles
bringing this thread back to life

I decided recently I wanted to dive into the world of programming, only knowing html and messed with a bit of java and css, Objective-C is something completely new to me.

I picked up the Kockan's Programming in Objective-C 2.0, Cocoa Programming for Mac 3rd edition, and Beginning iPhone 3 Development: Exploring the iPhone SDK. All 3 of them seem like great resources and I can't wait to start the learning process, but I want to make sure I do it right.

I have heard conflicting advice on where to start. I was originally told I should start on the Objective-C and learn the basics of that and them move onto Cocoa and round it out as an overview with the Beginning iPhone Development book. Another programmer suggested starting with the Beginning iPhone book, then Objective-C.

Any suggestions from people who have gone through these books?
quid squid is offline   0 Reply With Quote
Old Aug 5, 2009, 03:13 PM   #25
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
Quote:
Originally Posted by quid squid View Post
Any suggestions from people who have gone through these books?
Start with Kochan. It's command line, so it'll be less sexy than working with the interface builder stuff that you'll see in the other books, but Objective-C is really a pre-requsite to understanding Cocoa/Cocoa-touch. You may get a bit bored with the command-line apps and it would be ok to mess around with some of the earlier chapters of the other books, but you should really finnish Kochan (especially the 2nd half that focuses on the foundation framework) before pushing very far into the cocoa/cocoa-touch programming stuff.
GorillaPaws 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
Best book to learn Objective-C for a complete beginner to programming? Rasta4i iPhone/iPad Programming 7 Dec 18, 2013 10:03 AM
Best way to learn Objective C AppleDeviceUser iPhone/iPad Programming 23 Mar 7, 2013 12:57 AM
BecomeAnXcoder : A free book for starting with Cocoa using Objective-C msaljaber iPhone/iPad Programming 0 Feb 7, 2013 06:30 AM
WebView in Cocoa (Objective-C) tr!pf!3 Mac Programming 0 Aug 28, 2012 10:48 AM
Whats the best way to learn objective c? gusping Mac Programming 7 Aug 2, 2012 07:27 AM

Forum Jump

All times are GMT -5. The time now is 03:28 PM.

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

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