Objective C Programming Tutorial – 36 – Running the Brand New Point Program

April 9, 2012
Objective C Programming Tutorial – 36 – Running the Brand New Point Program

thenewboston.com Ask me all questions there as well as view source code for the tutorials!
Video Rating: 4 / 5


  1. LeafDot1 April 9, 2012 at 8:03 am -

    Oh yeah why do you need an asterisks after the object you’re setting?

  2. LeafDot1 April 9, 2012 at 8:04 am -

    I don’t get it. r.width, r.height, r.orgin.x, r.orgin.y, but [r area] and [r perimeter]? Why do those ones specifically need brackets to separately define them and why is the object “r” able to have a period after it to string together separate objects?

  3. Iamlooty April 9, 2012 at 8:21 am -

    “That kind of looks like sexy…COOL”

  4. EzixQN April 9, 2012 at 9:13 am -

    I think
    - r.origin is a variable
    - [r area] is the result of a function (return ..;)

  5. TheMikeckw April 9, 2012 at 9:53 am -

    you didn’t use  setOrgin….

  6. petermh255 April 9, 2012 at 9:53 am -

    I don’t understand like anything you wrote in this tutorial, along with the last three or four

  7. bogidon April 9, 2012 at 10:35 am -

    bucket take a spelling class. JK your awesome!

  8. archird11 April 9, 2012 at 10:55 am -

    Orgin, Orgsm, Orgnality, Orginal Xp

  9. StickyFingersStudios April 9, 2012 at 11:27 am -

    origin not orgin ! :D

  10. googleboy314 April 9, 2012 at 12:25 pm -

    Actually, you don’t need to have the line of code inside the parenthesis after int main, or the line of code directly below that, OR the pool drain right before the return 0;

    All you need is

    int main()
    //your code
    return 0;

  11. rolandigido April 9, 2012 at 12:59 pm -

    why can we have some with r.origin and then also [r area]?
    I don’t get the difference between the two.
    also the r area was never used until this point in the previous tutorial so how can x code understand that it is the rectangles area?
    hope people understand what I’m getting at!

  12. byramike April 9, 2012 at 1:23 pm -

    For those who are having trouble with the *, just remove the space between XYPoint and the asterisk. XYPoint* and not XYPoint *

  13. pi399 April 9, 2012 at 2:08 pm -

    You misspelled origin.

  14. ILoveTheBeyond April 9, 2012 at 2:43 pm -

    setter is the setOrgin method, I use [r setOrgin: p]; and [r orgin]; statements instead, and works fine. But I don’t know how r.orgin could work either.

  15. FireStormBravo April 9, 2012 at 3:28 pm -

    I accidentally named mine “point” instead of “XYPoint” and the computer recognized it as something else so I had to rename it as xypoint. It took awhile to get it working.

  16. jbragadeesh April 9, 2012 at 4:19 pm -


  17. Sawer89 April 9, 2012 at 4:22 pm -

    Why didint u use like [r orgin : p] cause it is not define as property

  18. isaykatsman April 9, 2012 at 4:33 pm -

    Nice, but is it possible to graphically implement this concept?

  19. sepehrseb April 9, 2012 at 5:14 pm -

    Ok the thing i dnt get is, i thought we were gonna draw the rectangle from those points, but u just assigned it an origin like what u did with hight and width! why did u do so much work ????

  20. Demoonism April 9, 2012 at 5:31 pm -

    same here

  21. kizzie33 April 9, 2012 at 5:39 pm -

    Ok i dont understand, how can you do r.orgin ? You never made orgin a property. And on Xcode for me it comes up with Warning you have not made a setter for this.

  22. mrmac2121 April 9, 2012 at 6:08 pm -

    width and height “are”… not “is” :P loving the videos

  23. kitezen April 9, 2012 at 6:44 pm -

    it’s one letter give it a rest.
    Besides, imo, it kinda sounds like orgy ;0)

  24. kitezen April 9, 2012 at 7:42 pm -

    This is a tutorial in Objective C for the Apple platform. If you want to learn ANSI C, you’d best look for a tutorial on that. Otherwise you ‘ll go crazy trying to apply this to a Linux platform

  25. Marclonechai April 9, 2012 at 8:09 pm -

    orgin origin, orgin origin.
    i have 800 errors cos of this typo.

    Why do we need to add an asterisk in the setters and getters for point?
    -(point *) origin;
    why not just
    -(point) origin;
    Is it because point is not something like -(int) or -(void)
    but a special object we defined?