tags:

views:

92

answers:

4

how long will it take to learn objective c with basic knowledge of c?

A: 

(Since the question has been two completely different questions, I'll answer both.)

I believe these are great starting tutorials, because they discuss a little object-orientation and assume knowledge of basic C. They may be a little too simple for an experienced C programmer, but they're still a good start. This stage will be very quick, maybe a week to get comfortable with the basic concepts.

  1. http://cocoadevcentral.com/d/learn_objectivec/ (Obj-C)
  2. http://cocoadevcentral.com/d/learn_cocoa/ (Cocoa part 1)
  3. http://cocoadevcentral.com/d/learn_cocoa_two/ (Cocoa part 2)
  4. http://cocoadevcentral.com/articles/000082.php (Style part 1)
  5. http://cocoadevcentral.com/articles/000083.php (Style part 2)

Then, for learning the Cocoa framework, Apple's resources (various "Guides", the class references, and sample projects on each topic) are best. This part will take the rest of your life; the frameworks are gigantic and there's always a little more to learn about any given topic.

andyvn22
+2  A: 

Ok, my two cents:

  1. You have to learn the concept of OOP (Object Orient Programming). Which includes learning about classes and objects.
  2. You have to forget the ways of procedural programming and look at programming in an OO way.
  3. You have to learn a syntax that is very similar to Smalltalk.
  4. Introduction to The Objective-C Programming Language is a good place to start learning Obj-C.
  5. Finally, C gives you an advantage from complete newbies in the sense that you know about pointers and memory management.
  6. If your learning about iPhone: iCodeBlog
  7. As for Mac you can try: CocoaDevCentral

As for time it really is very dependent on a lot of things but here are some factors:

  1. How fast a learner or you?
  2. Do you know OOP and if so how well do you know it?
  3. How much C do you know that will transfer (especially memory management)?
thyrgle
thanks a lot friend thyrgle
question
A: 

In addition to what thyrgle said, you also need to learn about a different style of memory management. The concept is similar to C in that if you allocate it you are responsible for freeing it. But the implementation is quite different, there is reference counting etc. This was the part I found most difficult when I was learning objective-c but once you get a handle on this it's quite easy.

See here for more info:

http://developer.apple.com/iphone/library/documentation/cocoa/conceptual/memorymgmt/MemoryMgmt.html

GWW
A: 

only 15 to 20 days if u are aa normal programmer

pankaj kainthla
Is it a coincidence that the author of this answer and the original question have the same first name?
Mike Weller