I would like to imitate the functionality of [NSArray arrayWithObjects:] which allows me to type in arguements this way: [MyClass doSomethingWithObjects: @"str1",@"str2",nil]. Assuming this is possible, how can I declare this?
I would like to imitate the functionality of [NSArray arrayWithObjects:] which allows me to
Share
Found it explained here:
http://cocoawithlove.com/2009/05/variable-argument-lists-in-cocoa.html