| Sign In/My Account | View Cart |
| Article: |
The Objective-C Language | |
| Subject: | Question | |
| Date: | 2001-05-08 12:38:40 | |
| From: | uwiz | |
|
I have a question concerning the following syntax:
|
||
Showing messages 1 through 7 of 7.
Question
Question
Question
Question
setXLocation:yLocation:
So you see yLocation here isn't refering to the instance variable, but is just part of the name. Also, the reason we have uppercase "X" and lowercase "y" is purely a matter of aesthetics. If the arguments were reversed then I would have written an uppercase "Y" and lowercase "x":
setYLocation:xLocation
I just like having new words or standalong letters in variable and method names start with an uppercase letter. Purely a matter or preference.
Sorry if this was redundant with my last message, i'm just trying to attack it from all angles.