| Author |
Method naming in Objective-C
|
Hussein Baghdadi
clojure forum advocate
Bartender
Joined: Nov 08, 2003
Posts: 3359
|
|
Hey,
This Objective-C method takes two parameters.
-replaceSubview:oldView with:newView;
replaceSubview is the method name
oldView is the first parameter name.
What is 'with' and 'newView'?
Thanks for help and time.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56228
|
|
Objective-C uses smilies in its syntax?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
|
|
|
It must take two parameters, replacing the first parameter in the object with the second parameter. It seems a peculiar method to write, passing a value which might or might not be a field of your object already, then another value to replace it with which might already be a field of your obect (or might not).
|
 |
 |
|
|
subject: Method naming in Objective-C
|
|
|