How to create variable argument methods in Objective-C
What these are called, generally, is “variadic functions” (or methods, as it were). To create this, simply end your method declartion with , …, as in – (void)logMessage:(NSString *)message, …; At this point you probably want to wrap it in a printf-like function, as implementing one of those from scratch is trying, at best. – … Read more