title: How can I write a function in objective-c, that I can use over any object in my iPhone app?
body: <p>I want to create a function which I pass an object. Then, this function should print out some information for me.</p>
  
  <p>like:</p>
  
  <pre><code>analyzeThis(anyObject);
  </code></pre>
  
  <p>I know about methods, but not how to make a function. As I understand, a function works global in all methods and classes, right?</p>