title: Should I use an intermediate temp variable when appending to an NSString?
body: <p>This works -- it does compile -- but I just wanted to check if it would be considered good practice or something to be avoided?</p>
  
  <pre><code>NSString *fileName = @"image";
  fileName = [fileName stringByAppendingString:@".png"];
  NSLog(@"TEST  : %@", fileName);
  
  OUTPUT: TEST  : image.png
  </code></pre>
  
  <p>Might be better written with a temporary variable:</p>
  
  <pre><code>NSString *fileName = @"image";
  NSString *tempName;
  tempName = [fileName stringByAppendingString:@".png"];
  NSLog(@"TEST  : %@", tempName);
  </code></pre>
  
  <p>just curious.</p>