Resolved A question on how to jump from C to Obj-C

Discussion in 'iOS Programming' started by Noahian, Sep 10, 2011.

  1. Noahian, Sep 10, 2011
    Last edited: Sep 11, 2011

    Noahian macrumors newbie

    Joined:
    Sep 2, 2011
    #1
    I want to build iOS apps (like the rest of the world).

    I have been given advice to learn C first and the K&R book was recommended by many. I have now finished about a half through the book..

    On the way, I've been peeking at many obj-C tutorials, especially the stanford lectures at itunesU. But the problem is whereever i look, the tutor seems to act on the basis that i know what things like classes and methods are for. I know what they are for on a superficial level but not enough to follow through as i am not familiar with the lexicon..

    Now is C not enough to follow on to obj-c? Is there any obj-c resource that explains a class like the K&R book explains a function before it moves on to the syntax. Anything that assumes that obj-c is my first OOP language.

    Every tutorial, on a level, feels like "You know what an apple is, i do not need to tell you that its a fruit, but obj-c we write is as 'appley' ". But since i am learning plain old C which talks about vegetables, i can not keep up with the talk about fruits (classes, methods and all the other OOP stuff). So even if i know a thing or two about fruits, i stumle when someone says "to get the seeds off an apple". Seeds? What seeds?
     
  2. tinybruk macrumors newbie

    Joined:
    Mar 23, 2008
    #2
    Aaron Hillegass

    Aaron Hillegas book on Mac programming with Obj-C is the best place to start.
     
  3. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    Your whole metaphor confused me badly.

    I think simply learning C and then diving into those Stanford lectures will be enough. I think you'll pick up the vocabulary as you get exposed to it more in the Apples docs and in the Stanford lectures... I feel like that's what happened for me.
     
  4. larswik macrumors 68000

    Joined:
    Sep 8, 2006
    #4
    Here is what I did since you almost sound like me. I started with Object - C as my first language, that was bad. I got the book 'Learn C on the Mac', excellent book. Last summer I started it and by Christmas time I was able to write a console based black jack game.

    In January I took a programming class at my city collage in Pascal, a dead language but it help reenforce what I learned in C and I learned how to talk to people better since I got exposure to lingo.

    This past summer I started Object - C for Mac development and just 2 weeks ago started up with iPhone and paid my $99 a few days ago to test it on my phone. I got the book 'Object -C for absolute beginners'. It was an OK book but it is good with the fundamentals to get me going.

    Now I am enrolled at a city college class from JAVA which is an Object language. I also started watching those same videos you did and I am able to keep up with them for the most part.

    My advice, take your time and learn C. Methods are just Functions which you learn in C. If you understand how you pass arguments into Functions and return a value then you know Methods. It gets a little weird when objects pass messages to each other which I am still grasping.

    I wanted to learn Object - C but spent a year with C and pascal before I started.
     
  5. Noahian thread starter macrumors newbie

    Joined:
    Sep 2, 2011
    #5
    @tinybruk : Thanx..i'll have a look if i can get my hands on it at the bookstore..

    @ArtOfWarfare : Sorry for the metaphor :) It was intended to be the other way around.. It is a relief to hear from someone who made it with the lectures after some C knowledge (and published a game on the appstore right?)..
    _______
    @larswik : Thanx.. i'll definitely check that 'Object -C for absolute beginners' book..


    That was pretty much all i needed to know..
     

Share This Page