title: Defining NSMutableString?
body: <p>My understanding is that both of these create a NSMutableString, only the first one is owned by the system and the second one is owned by me (i.e. I need to release it). Is there any particular reason why I should use one or the other, on the face of it it seems easier to use the first? Also is the first better as it gives the compiler a sense of size?</p>
  
  <pre><code>NSMutableString *newPath = [NSMutableString stringWithCapacity:42];
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>NSMutableString *newPath = [[NSMutableString alloc] init];
  </code></pre>
  
  <p>EDIT ... ALSO</p>
  
  <p>I see a lot a declarations written on two lines (i.e.)</p>
  
  <pre><code>NSMutableString *newPath;
  newPath = [NSMutableString stringWithCapacity:42];
  </code></pre>
  
  <p>Personally I prefer the one-liner, is this just another example personal style?</p>