Possible Duplicate:
Define a method that has many (or infinite) arguments
I have the following method, that is supposed to get n parameters. How can I access these parameters one by one? How can I count the number of parameters passed to this method?
What is this feature in Objective-C called?
- (void)containsPoints:(CGPoint)points, ...
{
// Get number of points passed?
// Access these points 1 by 1
}
From here: