Hi guys, my doubt is when I know that I have to use a method like this:
or
The first example I used the name of the object + the method.
The second example I used the name of the class + the method.
I know that the first one I'm not adding to the value but how I'm gonna know which one to use?
Cheers
Code:
[myCombo addItemsWithObjectValues:myArray];
or
Code:
myArray = [NSMutableArray arrayWithObjects: object1, object2, object3, nil];
The first example I used the name of the object + the method.
The second example I used the name of the class + the method.
I know that the first one I'm not adding to the value but how I'm gonna know which one to use?
Cheers
Last edited by a moderator: