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

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 4, 2008, 08:57 PM   #1
anjinha
macrumors 604
 
anjinha's Avatar
 
Join Date: Oct 2006
Location: London, UK
Learning iPhone Development

I'm interested in learning about iPhone development. I don't know anything about programming but I'd really like to learn on my free time. The reason I'm interested is because I love everything related to the iPhone, I have a lot of ideas for apps that I'd like to make for myself and I love a challenge. Also have always been a bit fascinated by programming.

So what I need is to know where to start. Books, tutorials online, suggestions, whatever. Everything is welcome.
__________________
Thank you Steve.
anjinha is offline   0 Reply With Quote
Old Dec 4, 2008, 08:59 PM   #2
Blue Velvet
Moderator emeritus
 
Join Date: Jul 2004
Moved this thread into the iPhone Programming forum. See the stickies and the linked Guides at the top of the forum for more info.
Blue Velvet is offline   0 Reply With Quote
Old Dec 4, 2008, 09:04 PM   #3
anjinha
Thread Starter
macrumors 604
 
anjinha's Avatar
 
Join Date: Oct 2006
Location: London, UK
So I've been looking around a bit and I should first of all learn about programming in Objective-C? And then move to iPhone programming?
__________________
Thank you Steve.
anjinha is offline   0 Reply With Quote
Old Dec 4, 2008, 10:19 PM   #4
CocoaPuffs
macrumors 68010
 
Join Date: Aug 2008
Quote:
Originally Posted by anjinhamarota View Post
So I've been looking around a bit and I should first of all learn about programming in Objective-C? And then move to iPhone programming?
Perhaps start off with Java, which is more documented and have simpler library to start.

You might be a good year or two away from able to write something decent on iPhone.
CocoaPuffs is offline   0 Reply With Quote
Old Dec 4, 2008, 10:24 PM   #5
italiano40
macrumors 65816
 
italiano40's Avatar
 
Join Date: Oct 2007
Location: NY
Send a message via AIM to italiano40 Send a message via Skype™ to italiano40
learn Cocoa first since you want to write iphone apps you can't write iphone in java
__________________
Macbook 1gb Ram 2.10ghz 120gb HD Leopard
iphone 3g 8gb
Xbox360(Italiano40)
twitter
italiano40 is offline   0 Reply With Quote
Old Dec 4, 2008, 10:25 PM   #6
CocoaPuffs
macrumors 68010
 
Join Date: Aug 2008
Quote:
Originally Posted by italiano40 View Post
learn Cocoa first since you want to write iphone apps you can't write iphone in java
I don't think you know what you are talking about...

Cocoa is perhaps the last thing you should worry about if you want to become a proficient iPhone programmer from zero background.
CocoaPuffs is offline   0 Reply With Quote
Old Dec 4, 2008, 10:35 PM   #7
anjinha
Thread Starter
macrumors 604
 
anjinha's Avatar
 
Join Date: Oct 2006
Location: London, UK
I don't mind if it takes a while for me to learn, I think it will be a nice challenge for me.

Do you have suggestions on good books to get me started?
__________________
Thank you Steve.
anjinha is offline   0 Reply With Quote
Old Dec 4, 2008, 10:37 PM   #8
CocoaPuffs
macrumors 68010
 
Join Date: Aug 2008
Quote:
Originally Posted by anjinhamarota View Post
I don't mind if it takes a while for me to learn, I think it will be a nice challenge for me.

Do you have suggestions on good books to get me started?
Java is the way to go, it is becoming the standard language for introduction to programming.

You can check out http://see.stanford.edu/
CocoaPuffs is offline   0 Reply With Quote
Old Dec 5, 2008, 01:42 AM   #9
chbeer
macrumors member
 
Join Date: Sep 2008
Location: Berlin
Java is absolutely !!WRONG!! for the iPhone! It's a nice language but it does not exist for the iPhone (besides some experimental stuff)!!

Read the introductory documentation on http://developer.apple.com/iphone and this book for a first contact to objective-c and cocoa:
Cocoa(R) Programming for Mac(R) OS X (3rd Edition) (Paperback)

For an intro to iPhone dev. read the documentations on dev.apple.com or a book like this:
The iPhone Developer's Cookbook: Building Applications with the iPhone SDK (Developer's Library) (Paperback). It's from Erica Sadun, who did a lot at the beginning of iPhone coding (before AppStore and the like existed). I didn't read it though...
__________________
Learn vocabulary on-the-go? iVocabulary!

Follow iVocabulary on Twitter!
chbeer is offline   0 Reply With Quote
Old Dec 5, 2008, 01:55 AM   #10
anjinha
Thread Starter
macrumors 604
 
anjinha's Avatar
 
Join Date: Oct 2006
Location: London, UK
Quote:
Originally Posted by chbeer View Post
Java is absolutely !!WRONG!! for the iPhone! It's a nice language but it does not exist for the iPhone (besides some experimental stuff)!!

Read the introductory documentation on http://developer.apple.com/iphone and this book for a first contact to objective-c and cocoa:
Cocoa(R) Programming for Mac(R) OS X (3rd Edition) (Paperback)
Will that book be OK even if I know absolutely nothing about programing? From the description on the amazon page seems like I should have some C/C++ programming experience before reading that one. I'll probably get it anyway I was just wondering if that's the best one for me to start.
__________________
Thank you Steve.
anjinha is offline   0 Reply With Quote
Old Dec 5, 2008, 02:59 AM   #11
neil.b
macrumors member
 
Join Date: Nov 2008
Quote:
Originally Posted by anjinhamarota View Post
Will that book be OK even if I know absolutely nothing about programing? From the description on the amazon page seems like I should have some C/C++ programming experience before reading that one. I'll probably get it anyway I was just wondering if that's the best one for me to start.
I'm currently working my way through the same book. Personally I don't think it's for beginners at all, though it is a great book.

I'm only a beginner myself though I have done programming in the past (assembly language, C/C++, and more recently ActionScript (2 & 3).

If you have no C knowledge you could do with starting there, then learn about Objective C. And also you need to understand OOP.

When I started playing around with the tools (Xcode etc), I thought it would be simpler to learn some Cocoa programming so I bought "Cocoa Programming For Dummies". I found it pretty useful (but basic) though the book is based on older versions of Xcode and Interface Builder. It helped demystify some of the concepts and procedures that are required to build an Xcode project, especially objects/outlets/actions stuff.

All IMHO of course
neil.b is offline   0 Reply With Quote
Old Dec 5, 2008, 03:04 AM   #12
anjinha
Thread Starter
macrumors 604
 
anjinha's Avatar
 
Join Date: Oct 2006
Location: London, UK
Quote:
Originally Posted by neil.b View Post
I'm currently working my way through the same book. Personally I don't think it's for beginners at all, though it is a great book.

I'm only a beginner myself though I have done programming in the past (assembly language, C/C++, and more recently ActionScript (2 & 3).

If you have no C knowledge you could do with starting there, then learn about Objective C. And also you need to understand OOP.

When I started playing around with the tools (Xcode etc), I thought it would be simpler to learn some Cocoa programming so I bought "Cocoa Programming For Dummies". I found it pretty useful (but basic) though the book is based on older versions of Xcode and Interface Builder. It helped demystify some of the concepts and procedures that are required to build an Xcode project, especially objects/outlets/actions stuff.

All IMHO of course
All opinions are really helpful, so thanks.
__________________
Thank you Steve.
anjinha is offline   0 Reply With Quote
Old Dec 5, 2008, 03:16 AM   #13
spinyanteater
macrumors newbie
 
Join Date: Oct 2008
Not the iPhone cookbook!

Sorry to add to the confusion, but I am learning iPhone programming with almost no relevant programming background so I can speak from experience .

First, for the basics of Cocoa Programming work through the free pdf 'Become an Xcoder' from Cocoalab (www.cocoalab.com/?q=becomeanxcoder).

Then, for learning Objective-C you don't have much choice - it's Kochan's "Programming in Objective-C 2.0". Although the hard copy of this edition has not yet been published, the book is available as a pdf download from Safari Rough Cuts http://safari.informit.com/9780321605559 ).

The classic book to follow this with is Hillegass "Cocoa Programming for Mac OS X". This is what I am working through and there is no doubt that it an excellent book. But there is nothing in it about iPhone programming.

A book that I am expecting to be very good though I have only worked through the free preview chapter (my copy has only just arrived) is "Beginning iPhone Development" by Mark and Lamarche. This may be your best choice .

Finally, don't get Erica Sadun's iPhone Cookbook! This is a collection of code snippets and is no good at all for beginners. I do have a copy and I have tried it so again I speak from experience.

Good luck!
spinyanteater is offline   0 Reply With Quote
Old Dec 5, 2008, 04:32 AM   #14
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Any book with "Cookbook" or "Effective" in the title is most likely aimed at those with a solid grasp of the language and related concepts.

Personally I would start with C then learn Objective-C then finally spend the time learning the Cocoa APIs.

Without a decent understanding of C concepts such as pointers and memory management are going to be much harder in Objective-C. I've seen so many newbies (actually seems to have started fairly recently) that do not know the difference between int *myInt and int myInt. Something that knowledge in C would remedy.

Plus with Objective-C being a strict superset of C your still learning applicable information for iPhone programming.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Dec 5, 2008, 06:31 AM   #15
spinyanteater
macrumors newbie
 
Join Date: Oct 2008
Quote:
Originally Posted by Cromulent View Post
Personally I would start with C ...
I appreciate that already knowing C is a huge bonus in learning Objective-C, but I just want to add that Kochan's book is specifically written for people who do not know C. He aims to teach Objective-C and the underlying C as an integrated language.
spinyanteater is offline   0 Reply With Quote
Old Dec 5, 2008, 08:01 AM   #16
liptonlover
macrumors 6502a
 
Join Date: Mar 2008
Quote:
Originally Posted by spinyanteater View Post
First, for the basics of Cocoa Programming work through the free pdf 'Become an Xcoder' from Cocoalab (www.cocoalab.com/?q=becomeanxcoder).
I absolutely agree. If anyone's read my posts in beginner threads before, I always recommend that tutorial, because it's the best of the best. The only thing is it's for desktop programming, not for the iphone. But I advise you start with the desktop anyways, because you'll find more tutorials and information, and because it's just plain easier, IMO. Becomeanxcoder assumes you don't know how to program, whatsoever. It will teach you enough C to get by, it will teach you the basics of objc and cocoa which is what you need for the iphone, and it will teach you how to use xcode and interface builder. One little problem; it's slightly outdated. There will be some differences in xcode that you will have to figure out. But it's not too hard, and absolutely worth it.

I said before becomeanxcoder teaches you enough C to get by, but I don't think that's enough. You should really know the language pretty well, even if you can't write a real app using it. It will help you in the future. So for that, I advise you go to www.cprogramming.com. There you'll find tutorials for C and C++ if you ever want to go there, and a ton of links for various things that you may or may not be interested in. It's all old stuff, but still perfectly relevant. You'll have to figure out how to start a C project in xcode, though, I don't remember how.

Good luck!
Nate
__________________
Failure is not an option. It comes bundled with Windows.
Writing portfolio
liptonlover is offline   0 Reply With Quote
Old Dec 5, 2008, 09:29 AM   #17
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: Hitchin, Herts, UK
Quote:
Originally Posted by CocoaPuffs View Post
I don't think you know what you are talking about...

Cocoa is perhaps the last thing you should worry about if you want to become a proficient iPhone programmer from zero background.
Well you won't program an iPhone without Cocoa. Personally I've been programming for twenty years and have never used Java - C, C++, assembler (Z80, 6502, x86), Cobol (unfortunately), Pascal, Basic (VB and others) and Cocoa/Objective-C - but not Java. I don't feel I'm missing anything for having missed it out.

FWIW, I have published Mac and iPhone apps that are making several hundreds of dollars a month.
caveman_uk is offline   0 Reply With Quote
Old Dec 5, 2008, 09:40 AM   #18
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
If you already know a procedural language which had lots of books on it (Basic), a language with pointers and data types/structures (C), and a OOP language (C++, Smalltalk), you don't need to start with Java. But starting with it can save you from the previous 3. Obj-C seems nice, but there aren't dozens of beginner books on it to choose from. Learning Cocoa will likely just lead to a mess if you try to learn it before learning how to program and develop software IMHO.


.
__________________
Apple II+, Mac 128k->512ke, Duo 210, MacBook Air 11, iPad mini, iPhone 5

Last edited by firewood; Dec 5, 2008 at 09:46 AM.
firewood is offline   0 Reply With Quote
Old Dec 5, 2008, 12:00 PM   #19
CocoaPuffs
macrumors 68010
 
Join Date: Aug 2008
Umm...is this an example of the typical answers from this particular forum?

OP does not have any experience in programming and wish to eventually be able to program iPhone.

Java is an objective oriented language similar to Objective-C, but it is much more documented and have better resources and books available to learn. If you wish to learn programming that will lead you down the path to iPhone programming, Java is a great place to start.

As for comments that you don't need Java or care for Java, that's obviously not the point I am trying to make. If you think going from no programming experience and straight to Objective-C...good luck. Straight to Cocoa? Hah...I suggest you to borrow a book from library so you're not throwing money down the toilet. Any other language as starter? I would like to hear that input.
CocoaPuffs is offline   0 Reply With Quote
Old Dec 5, 2008, 12:35 PM   #20
fenrus110
macrumors regular
 
Join Date: Mar 2008
Quote:
Originally Posted by chbeer View Post
Java is absolutely !!WRONG!! for the iPhone! It's a nice language but it does not exist for the iPhone (besides some experimental stuff)!!
So what? A good programmer isn't deterred by the language. It is the fundamentals. And I think my strong Java background has been extremely useful in my learning of Objective-C. And many of the principles are very similar. OO, single class inheritance, interfaces. And other than knowing why you put * for objects, why you release things, and what header files are, I don't think my knowledge of C was that important to my learning. all that stuff would be covered in the basics of Objective-C anyways.

And as stated, Java is well documented. You can google search many things. good luck with that for Objective C.
fenrus110 is offline   0 Reply With Quote
Old Dec 5, 2008, 12:51 PM   #21
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Quote:
Originally Posted by chbeer View Post
Java is absolutely !!WRONG!! for the iPhone!
Correct! !!! However one must first learn how to program, before learning how to write software for the iPhone. Trying to do both is likely pure overload for anyone non-brilliant. And having learned more than one programming language is always better than knowing only one, IMO.

Last I checked, there were 3 decent books on Cocoa... and over 300 on Java. Which are you more likely to find a copy of in the library? ( Actually, I prefer Basic as a first programming language, but the books are so old, my local library has thrown most of them out! :-(
)

.

Last edited by firewood; Dec 6, 2008 at 01:39 AM.
firewood is offline   0 Reply With Quote
Old Dec 5, 2008, 10:12 PM   #22
anjinha
Thread Starter
macrumors 604
 
anjinha's Avatar
 
Join Date: Oct 2006
Location: London, UK
Thank you so much for all the replies.
__________________
Thank you Steve.
anjinha is offline   0 Reply With Quote
Old Dec 6, 2008, 07:53 PM   #23
neil.b
macrumors member
 
Join Date: Nov 2008
Just gone through that Xcoder tutorial myself (I'd not heard of it before). Agree with the people that linked to it - it's good stuff.
neil.b is offline   0 Reply With Quote
Old Dec 7, 2008, 09:35 PM   #24
alexbates
macrumors 65816
 
alexbates's Avatar
 
Join Date: Nov 2008
Location: Georgia, USA
I am also very interested in iPhone developmen and in software programming overallt. I am a beginner and have not learned any code languages. Based on these comments, it looks like I should start off learning cocoa if I want to work with the iPhone. I also know that many applications on the Mac are written in cocoa, and soon in Snow Leopard, the Finder will also be written in cocoa.

Does cocoa seem like the right way to go? What software is good for writing in cocoa on the Mac? In particular, has anyone read any good books that teach beginners to write in code?

I have also made a survey for developers (the link below) in the computer class that I am taking at school. If you have the time, please take it to help me get some feedback.
__________________
2009 MacBook Pro 13"- 2.53GHz iPad 2 16GB Black iPhone 3GS 16GB Black
Macrumors Scavenger Hunt: 0 points
Twitter
alexbates is offline   0 Reply With Quote
Old Dec 7, 2008, 10:58 PM   #25
CocoaPuffs
macrumors 68010
 
Join Date: Aug 2008
Quote:
Originally Posted by alexbates View Post
I am also very interested in iPhone developmen and in software programming overallt. I am a beginner and have not learned any code languages. Based on these comments, it looks like I should start off learning cocoa if I want to work with the iPhone. I also know that many applications on the Mac are written in cocoa, and soon in Snow Leopard, the Finder will also be written in cocoa.

Does cocoa seem like the right way to go? What software is good for writing in cocoa on the Mac? In particular, has anyone read any good books that teach beginners to write in code?

I have also made a survey for developers (the link below) in the computer class that I am taking at school. If you have the time, please take it to help me get some feedback.
Gosh, I guess people read only what they want to read. Good luck learning Cocoa.
CocoaPuffs is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Wanting to learn iPhone development but can seem to figure out where to get started.. Cluvdowns iPhone/iPad Programming 10 Oct 23, 2011 11:15 AM
Learning to develop on the iPhone help needed iPhone4UK iPhone/iPad Programming 4 Jul 1, 2010 06:08 AM
iPhone Development Learning Curve bagwaa iPhone/iPad Programming 3 Nov 5, 2009 10:26 AM
Going To Start Learning To Develop iPhone Applications Devan iPhone/iPad Programming 1 Jan 18, 2009 11:42 AM


All times are GMT -5. The time now is 08:14 AM.

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

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