title: How to return an NSString * in Objective C (keep getting invalid summary)
body: <p>So I presume this is a memory issue, here's the code:</p>
  
  <pre><code>- (NSString *)giveMeAStringGoddammit
  {  
    NSString *s;
    // switch statement to choose which string to assign to s, so essentially:
    s = @"a string";      
    return s;  
  }
  </code></pre>
  
  <p>And the calling code:</p>
  
  <pre><code>NSString *aString;
  aString = [self giveMeAStringGoddammit];
  </code></pre>
  
  <p>However after this call, aString has an invalid summary when debugged and crashes when run.
  I suspect I'm missing a retain or something, can someone help? Thanks.</p>