advertisement

Article:
  The Objective-C Language
Subject:   Question
Date:   2001-05-08 15:20:23
From:   mikebeam
Response to: Question

P.S. In the method under scrutiny here, the name of the method without the arguments is:


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.