ObjC Method naming
ObjC Method naming
- Subject: ObjC Method naming
- From: Pedrum Mohageri <email@hidden>
- Date: Mon, 28 May 2001 14:41:57 -0400
I have a silly question about the style convention used in Objective C
code. Take this example from page 56 of the ObjC reference.
[myRect setWidth:10.0 height:15.0];
Does this mean there is a method called set with two parameters width and
height? Wouldn't that be represented like this:
[myRect set Width:10.0 height:15.0];
Or does it mean there a method called setWidth with two parameters, a
nameless one(default?) and height.
I am coming from C/Java background so all these brackets and colons are
throwing me off a lot. ;-)