title: using objc_msgSend to call a Objective C function with named arguments
body: <p>I want to add scripting support for an Objective-C project using the objc runtime. Now I face the problem, that I don't have a clue, how I should call an Objective-C method which takes several named arguments.</p>
  
  <p>So for example the following objective-c call</p>
  
  <pre><code>[object foo:bar];
  </code></pre>
  
  <p>could be called from C with:</p>
  
  <pre><code>objc_msgSend(object, sel_getUid("foo:"), bar);
  </code></pre>
  
  <p>But how would I do something similar for the method call:</p>
  
  <pre><code>[object foo:var bar:var2 err:errVar];
  </code></pre>
  
  <p>??</p>
  
  <p>Best Markus</p>