title: Objective-C: Getters should not be used for side effects compiler warning
body: <p>Can someone clarify what is happening here. I got an class called: brainModel and it again has an NSArray called: operandStack. I am simply accessing the array sending it the message "removeAllObjects"</p>
  
  <pre><code>self.brainModel.operandStack.removeAllObjects;
  </code></pre>
  
  <p>but using dot notation it gives me an warning "Property access result unused - getters should not be used for side effects" What exactly does this mean?</p>
  
  <p>using nested bracket syntax like this gives no warning:</p>
  
  <pre><code> [[[self brainModel]operandStack]removeAllObjects];
  </code></pre>
  
  <p>both works btw... does it have anythig to do with wrong use of dot notation? or is it considered good practice to use dot notation when messaging objects like this - sending it arguments like "removeAllObjects".</p>