Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 22, 2009, 08:48 AM   #1
Josh Kahane
macrumors 6502
 
Join Date: Aug 2006
Location: Suffolk, UK
Need Tips on Learning Objective-C (or Any Language)

Hi

So I have realized that if I want to be able to do any substantial programming for Mac OS X or the iPhone I am going to need some solid knowledge in Objective-C.

I was wondering if you could give me any tips on helping me learn Objective-C, as its m first language ever, and would really appreciate it.
Josh Kahane is offline   0 Reply With Quote
Old Feb 22, 2009, 09:44 AM   #2
x86isslow
macrumors 6502a
 
Join Date: Aug 2003
Location: USA
Quote:
Originally Posted by Josh Kahane View Post
Hi

So I have realized that if I want to be able to do any substantial programming for Mac OS X or the iPhone I am going to need some solid knowledge in Objective-C.

I was wondering if you could give me any tips on helping me learn Objective-C, as its m first language ever, and would really appreciate it.
Hello Josh,

Congrats on your new adventure. I'm in the same boat you are. I learned HTML back in grade school, and now I'm trying to learn other languages. I started with the Learn Cocoa and C is for Cocoa tutorials here: http://cocoadevcentral.com/
x86isslow is offline   0 Reply With Quote
Old Feb 22, 2009, 10:30 AM   #3
mdeh
macrumors 6502
 
Join Date: Jan 2009
Quote:
Originally Posted by Josh Kahane View Post
Hi

So I have realized that if I want to be able to do any substantial programming for Mac OS X or the iPhone I am going to need some solid knowledge in Objective-C.

I was wondering if you could give me any tips on helping me learn Objective-C, as its m first language ever, and would really appreciate it.
Well...everyone has a style of learning. Steve Kochan has a new book, called Programming in Objective-C 2.0 which is excellent. I think you will not go wrong if you need a solid basis in Obj-C. He assumes that you have no prior C experience and teaches both C and Obj-C. I think it's an excellent book. Moreover, he has a website which is quite active http://www.classroomm.com/objective-c/
mdeh is offline   0 Reply With Quote
Old Feb 22, 2009, 11:43 AM   #4
Josh Kahane
Thread Starter
macrumors 6502
 
Join Date: Aug 2006
Location: Suffolk, UK
Great thanks guys. I should have said I already have Steve Kochan's book, 'Programming in Objective-C 2.0' and its great if not a little overwhelming, lots to remember and a little confusing. But that link should be handy.

Keep the help and tips coming people. Your helping not only me but alot of newbies out there. Thanks.
Josh Kahane is offline   0 Reply With Quote
Old Feb 22, 2009, 11:59 AM   #5
plumbingandtech
macrumors 68000
 
Join Date: Jun 2007
Also, if you do not have experience with { type launges, c or c++ I would suggest either getting the "learning c on the mac"

http://www.amazon.com/Learn-C-Mac-Da.../dp/1430218096

and spends LOTs of hours getting the basics of OOPs MVC and other core patterns.

oh. and it's going to be difficult as your first language/

anyone that says different is fooling you.

the key is to keep learning, build small apps first and have fun instead of thinking you are going to be the next "ishoot" if you "just get your app out in a month"

ain't going to happen.
__________________
The Palm Pre is the new Sarah Palin.
plumbingandtech is offline   0 Reply With Quote
Old Feb 22, 2009, 12:41 PM   #6
Josh Kahane
Thread Starter
macrumors 6502
 
Join Date: Aug 2006
Location: Suffolk, UK
I understand completely, its a harsh reality, its going to be a whole load of work, but I really want to learn it. Don't you think after reading Programming with Objective-C 2.0 reading Learn C on the Mac is a good idea? Wont that completely confuse things for me? Or are they pretty much the same?
Josh Kahane is offline   0 Reply With Quote
Old Feb 22, 2009, 12:45 PM   #7
plumbingandtech
macrumors 68000
 
Join Date: Jun 2007
No. Both would be better actually. and IMO I would read the Programming in C first, it's about building blocks, and as you know Obj C is built on c++, and there is still a lot of C in the API of OS X so know that first, would make the programming obj c much more lucid IMO.

the good thing about the Programming in OBJ c book, (the one with the lime on the cover not the stephen kohncran book which Ihave not read) is that it does a REALLY good job at allowing you to wade into these concepts.

But still, Programming in C will give you the base, read it fast, then go to the Obj C book.

THEN, read Programming in C again, then the OBJ C book again, you will be surprised how much better things stick when reading the concepts for the 2 or 3rd time.

best of luck!
__________________
The Palm Pre is the new Sarah Palin.
plumbingandtech is offline   0 Reply With Quote
Old Feb 22, 2009, 12:51 PM   #8
gibbz
macrumors 68030
 
gibbz's Avatar
 
Join Date: May 2007
Location: National Weather Center
Send a message via AIM to gibbz
I like the Learn series.

I am going to go in this order:
Learn C on the Mac
Learn Objective-C on the Mac
Beginning iPhone Development

and when it is released, I'll get
Learn Cocoa on the Mac
__________________
64GB Space Gray WiFi iPad Air 2x Apple TV (1080p) 32GB Black iPhone 5
MP 8x2.8/16GB MP 8x2.93/32GB/2x24" apple: MBA 1.7/8GB/256GB
Jeremy Gibbs | Gibbz
gibbz is offline   0 Reply With Quote
Old Feb 22, 2009, 01:00 PM   #9
plumbingandtech
macrumors 68000
 
Join Date: Jun 2007
Yes. I can't say enough about that series, IMO REALLY well done.

(those are the books I am speaking of, (i mistakenly said "programming"))

(and in the correct order of learning.)

__________________
The Palm Pre is the new Sarah Palin.
plumbingandtech is offline   0 Reply With Quote
Old Feb 22, 2009, 05:46 PM   #10
i-ash
macrumors newbie
 
Join Date: Nov 2008
Location: Melbourne, Australia
Send a message via ICQ to i-ash
Quote:
Originally Posted by mdeh View Post
Well...everyone has a style of learning. Steve Kochan has a new book, called Programming in Objective-C 2.0 which is excellent. I think you will not go wrong if you need a solid basis in Obj-C. He assumes that you have no prior C experience and teaches both C and Obj-C. I think it's an excellent book. Moreover, he has a website which is quite active http://www.classroomm.com/objective-c/
Cheers, thanks for the link.

I too am learning Objective-C, following Kochan's book. All good so far, am 6 chapters, but have been needing solutions to a few of the excercises.
__________________
Ash
MacBook 2.4 GHz Mac OS X 10.5.6
Carn the Doggies! Go Victory!
i-ash is offline   0 Reply With Quote
Old Feb 22, 2009, 05:55 PM   #11
lee1210
macrumors 68040
 
lee1210's Avatar
 
Join Date: Jan 2005
Location: Dallas, TX
First off, this comes up constantly on these forums, so I'd just use the search and read the many hundreds of posts that have already been made on this subject.

I wasn't going to reply at all on this one, until i saw:
Quote:
Originally Posted by plumbingandtech View Post
... as you know Obj C is built on c++, and there is still a lot of C in the API of OS X ...
I just wanted to make a minor correction... Objective-C is built on C, not C++. It is a different approach to extending and adding Objects to C than C++ took. It allows you to use C++ in a manner referred to as Objective-C++, but they are not the same, and one is not built on the other. Since Objective-C is a proper superset of C, there is naturally a lot of C at work when writing Objective-C, and using the Cocoa API.

-Lee
lee1210 is offline   0 Reply With Quote
Old Feb 22, 2009, 08:09 PM   #12
plumbingandtech
macrumors 68000
 
Join Date: Jun 2007
Ah yes!

I meant to type that!
__________________
The Palm Pre is the new Sarah Palin.
plumbingandtech is offline   0 Reply With Quote
Old Feb 23, 2009, 02:27 PM   #13
skochan
macrumors regular
 
Join Date: Apr 2006
Location: California
 
Quote:
Originally Posted by i-ash View Post
Cheers, thanks for the link.

I too am learning Objective-C, following Kochan's book. All good so far, am 6 chapters, but have been needing solutions to a few of the excercises.
Yes, the answers to the exercises are posted at the forum specified by that link.

Cheers,

Steve Kochan
skochan is offline   0 Reply With Quote
Old Feb 23, 2009, 03:02 PM   #14
skochan
macrumors regular
 
Join Date: Apr 2006
Location: California
 
Quote:
Originally Posted by gibbz View Post
I like the Learn series.

I am going to go in this order:
Learn C on the Mac
Learn Objective-C on the Mac
Beginning iPhone Development
You can follow that order of learning, as many others have. However, I don't agree with that approach. I think it's better to treat Objective-C as a language unto itself and learn it from the start rather than learning the underlying procedural C language first followed by the additions added to create the OOP language Objective-C.

I think that this approach worked in the past when programmers who already knew C wanted to learn the then "newer" object-oriented languages like C++ or Objective-C. I don't see why a new programmer who doesn't know C would need (or want) to follow that approach today. It's a different mindset and approach to programming. I'd rather the programmer learn how to write a class definition and a method first before learning how to write a structure and access its members or a function and how to call it and pass it arguments.

Just because Objective-C is an extension to C doesn't mean you need to learn C first.

Just my opinion, albeit biased since that's how I wrote my book. .

Cheers,

Steve Kochan
skochan is offline   0 Reply With Quote
Old Feb 23, 2009, 06:16 PM   #15
GoKyu
macrumors 65816
 
GoKyu's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Steve: I bought your book, and I made it to chapter 3 without too much trouble, but then I felt like I needed to relearn at least the basics of C that I knew years ago.

I ended up buying the "Learn C on the Mac", which is a really good book as well, and after I feel a little more comfortable with that, I'll come back to the object oriented stuff in Objective-C.

-Bryan
__________________
16 GB VZ iPad 3 16 GB Black iPhone 5
Mid 2011 Mac Mini 2.3Ghz i5 |14gb RAM|Samsung P2770HD
Epson Stylus Photo R1800|Bose Companion 5 speakers
GoKyu is offline   0 Reply With Quote
Old Feb 24, 2009, 12:58 AM   #16
Icyfire369
macrumors newbie
 
Join Date: Feb 2009
Programming in C

Hey Steve,

I purchased your Programming in C book and I was wondering if you had solutions to the exercises in your book. I visited the website where they might be found (http://www.kochan-wood.com/) but it doesn't seem to have solutions posted.

Do you have an updated site where the solutions are? I could really use them as a reference for practice.

Thanks
Icyfire369 is offline   0 Reply With Quote
Old Feb 24, 2009, 01:48 AM   #17
TotalLuck
macrumors newbie
 
Join Date: Jan 2009
Location: Moreno Vallley
Send a message via Yahoo to TotalLuck
Link to both Kochan example sites

for the "programing in Objective -C"


and for the "Programing in Objective-C 2.0"
__________________
Finding my inner Nerd
NEVER EVER make a drunken bet or you could wind up with a picture like mine.
TotalLuck is offline   0 Reply With Quote
Old Feb 24, 2009, 01:05 PM   #18
Icyfire369
macrumors newbie
 
Join Date: Feb 2009
Quote:
Originally Posted by TotalLuck View Post

Sorry I meant the 3rd Edition
Icyfire369 is offline   0 Reply With Quote
Old Feb 24, 2009, 09:02 PM   #19
i-ash
macrumors newbie
 
Join Date: Nov 2008
Location: Melbourne, Australia
Send a message via ICQ to i-ash
Quote:
Originally Posted by Icyfire369 View Post
Hey Steve,

I purchased your Programming in C book and I was wondering if you had solutions to the exercises in your book. I visited the website where they might be found (http://www.kochan-wood.com/) but it doesn't seem to have solutions posted.

Do you have an updated site where the solutions are? I could really use them as a reference for practice.

Thanks
You can find the answers here: http://classroomm.com/objective-c/
__________________
Ash
MacBook 2.4 GHz Mac OS X 10.5.6
Carn the Doggies! Go Victory!
i-ash 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
Which book for learning Objective-C should I choose? BoxerRobban472 iPhone/iPad Programming 17 Today 01:22 AM
Resolved: Learning objective-C? Curax iPhone/iPad Programming 4 Sep 7, 2013 11:28 AM
Book to start learning C-objective themis.b iPhone/iPad Programming 12 Mar 29, 2013 10:43 AM
I Need Help Learning Objective-c!! Woodshark69 Mac Programming 11 Dec 14, 2012 07:21 AM
Learning Objective C iPadProd iPhone/iPad Programming 4 Nov 18, 2012 05:37 PM

Forum Jump

All times are GMT -5. The time now is 04:41 AM.

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

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