I noticed this in Joe Hewitt’s source for Three20 and I’ve never seen this particular syntax in Objective-C before. Not even sure how to reference it in an appropriate Google search.
From TTTableViewDataSource:
+ (TTSectionedDataSource*)dataSourceWithObjects:(id)object,... {
The ‘…’ is what’s throwing me off here. I’m assuming it’s a form of enumeration where a variable amount of arguments may be supplied. If it is, what’s the official name for this operator and where can I reference the documentation for it?
Thank you kindly.
It’s a variadic method, meaning it takes a variable number of arguments. This page has a good demonstration of how to use it: