Oh yeah why do you need an asterisks after the object you’re setting?
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?
Iamlooty
April 9, 2012 at 8:21 am -
“That kind of looks like sexy…COOL”
EzixQN
April 9, 2012 at 9:13 am -
I think
- r.origin is a variable
- [r area] is the result of a function (return ..;)
TheMikeckw
April 9, 2012 at 9:53 am -
you didn’t use setOrgin….
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
bogidon
April 9, 2012 at 10:35 am -
bucket take a spelling class. JK your awesome!
archird11
April 9, 2012 at 10:55 am -
Orgin, Orgsm, Orgnality, Orginal Xp
StickyFingersStudios
April 9, 2012 at 11:27 am -
origin not orgin !
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;
}
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!
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 *
pi399
April 9, 2012 at 2:08 pm -
You misspelled origin.
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.
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.
jbragadeesh
April 9, 2012 at 4:19 pm -
Clean
Sawer89
April 9, 2012 at 4:22 pm -
Why didint u use like [r orgin : p] cause it is not define as property
isaykatsman
April 9, 2012 at 4:33 pm -
Nice, but is it possible to graphically implement this concept?
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 ????
Demoonism
April 9, 2012 at 5:31 pm -
same here
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.
mrmac2121
April 9, 2012 at 6:08 pm -
width and height “are”… not “is” loving the videos
kitezen
April 9, 2012 at 6:44 pm -
it’s one letter give it a rest.
Besides, imo, it kinda sounds like orgy ;0)
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
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?
Oh yeah why do you need an asterisks after the object you’re setting?
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?
“That kind of looks like sexy…COOL”
I think
- r.origin is a variable
- [r area] is the result of a function (return ..;)
you didn’t use setOrgin….
I don’t understand like anything you wrote in this tutorial, along with the last three or four
bucket take a spelling class. JK your awesome!
Orgin, Orgsm, Orgnality, Orginal Xp
origin not orgin !
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;
}
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!
For those who are having trouble with the *, just remove the space between XYPoint and the asterisk. XYPoint* and not XYPoint *
You misspelled origin.
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.
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.
Clean
Why didint u use like [r orgin : p] cause it is not define as property
Nice, but is it possible to graphically implement this concept?
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 ????
same here
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.
width and height “are”… not “is”
loving the videos
it’s one letter give it a rest.
Besides, imo, it kinda sounds like orgy ;0)
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
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?