title: Class methods which create new instances
body: <p>Apart from the standard <code>[[MyClass alloc] init]</code> pattern, some objects are built from static methods like <code>MyClass *obj = [MyClass classWithString:@"blabla"]</code></p>
  
  <p>According to widespread memory management guides (including Apple's), you're only responsible for releasing the objects that you <code>alloc</code>.</p>
  
  <p>Can anyone provide me with a template for such methods? How do you return the allocated object (<code>[self alloc]; return self;</code>, perhaps)? How do you make sure that it will be released?</p>