title: NSDate alloc init & getting message sent to deallocated instance
body: <p>i know the preferred way of get a new NSDate is [NSDate date]. but i'm just confused why the following code would ever throw the exception "message sent to deallocated instance"</p>
  
  <pre><code>NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
  [dateFormatter setDateFormat:@"MM/dd/yyyy"];
  NSDate *dateFromStr = [[NSDate alloc] init];
  // produce date object
  
  dateFromStr = [dateFormatter dateFromString:self.releaseDate];
  
  [dateFormatter setDateFormat:@"MM.dd.yyyy"];
  NSString *strDate = [dateFormatter stringFromDate:dateFromStr];
  
  [dateFormatter release];
  [dateFromStr release];
  </code></pre>
  
  <p>this code is in a viewcontroller that is used as a "virtual" view by another viewcontroller..something similar to this: <a href="http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html" rel="nofollow">http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html</a></p>