Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

diogosgp

macrumors newbie
Original poster
Jun 26, 2011
18
0
Hi guys, my doubt is when I know that I have to use a method like this:
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:
You know based on whether the method is documented with a leading - for instance methods called on an object or a + for class methods called on the class.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.