title: Pass arguments between Objective-C applications
body: <p>I was wondering if it is possible to pass arguments between Mac applications and if it possible, how.</p>
  
  <p>I know that in Java is possible using the following syntax from the command line:</p>
  
  <blockquote>
    <p>java JavaApp arg1 arg2 arg3 arg4</p>
  </blockquote>
  
  <p>And that is possible to access those through the main's args[] array.</p>
  
  <pre><code>public static void main(String[] args) {
          System.out.println("d");
          for (int i = 0; i &lt; args.length; i++)
              System.out.println(args[i]);
  }
  </code></pre>
  
  <p><strong>Edit:</strong> I want to pass the arguments from a <em>command line</em> Mac application to a <em>Cocoa Mac</em> application</p>