title: Nested method calls in objective c
body: <p>Hey i have just started out with objective-c and i came across the nested messaging concept.I don't understand why we have to use and how it's used syntactically and semantically.</p>
  
  <p>For example:</p>
  
  <pre><code>[[myAppObject theArray] insertObject:[myAppObject objectToInsert] atIndex:0]    
  </code></pre>
  
  <p>This was one i came across.My problem is that i don't know what <strong>[myAppObject theArray]</strong> is doing.Is it creating an instance of <strong>myAppObject</strong> or is there a class by that name with the method <strong>theArray</strong>?</p>
  
  <p>Can anyone shed light light on this topic?</p>