title: How to use va_args to pass arguments on (variadic parameters, ellipsis)
body: <p>I can't get my head around the syntax for multiple arguments in Objective-C. I have seen <a href="https://stackoverflow.com/questions/710033/what-is-this-objective-c-syntax-ellipse-style-dot-notation">this question</a>, but the answer hasn't helped me (yet).</p>
  
  <p>Here is my code (actually I will want to eventually pass to NSString stringWithFormat, but getting an NSLog to work would be good enough for now):</p>
  
  <pre><code>- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
       // Insert code here to initialize your application 
       [self log:@"blah blah %d", 32];
  }
  
  
  - (void)log:(NSString *)text, ... {
        va_list args;
        va_start(args, text);
        NSLog(text, args);
  }
  </code></pre>
  
  <p>The argument (or some argument) comes through, but it's got some weird value (output is <code>blah blah 1606412704</code>). How should I pass the values that come in via <code>...</code>?</p>