title: Setting return value of an Instance method
body: <p>I know that Instance methods can return a value when they are done executing, but I do not know how to set &amp; get that value, I know how to set the parameters but how do I set the return type of Method itself?</p>
  
  <p>So, this is the Instance method implementation:</p>
  
  <pre><code>-(int) returnInteger: (id) anString: (int) anNumber{
  </code></pre>
  
  <p>to set it´s parameters i do:</p>
  
  <pre><code> [self returnInteger: (id) returnNSString: (int) 100]; 
  </code></pre>
  
  <p>But how do I set the value of "returnInteger itself" I want to know how to set i both inside it´s implementation and when I call it (when it executes).</p>
  
  <p>also - one more question</p>
  
  <p>if I set it´s first parameter to be 100 inside the method, and when I call it I want to add 100 to it, how do i do that? i tried this -but did not work</p>
  
  <pre><code>[self returnInteger: (id) returnNSString: (int) + 100]; 
  </code></pre>