title: Best way to post NSNotification with NSRect info?
body: <p>what is the best way to post a notification with NSRect info?</p>
  
  <p>Here is my current solution (using NSStringFromRect).</p>
  
  <pre><code>- (void)postNotificationForDirtyRect:(NSRect)rect
  {
      NSDictionary *userInfo = 
          [NSDictionary dictionaryWithObject: NSStringFromRect(rect) 
                                       forKey: ILDirtyRect];
  
      NSNotificationCenter *ncenter = [NSNotificationCenter defaultCenter];
      [ncenter postNotificationName: ILDocumentBecomeDirtyRectNotification
                             object: self 
                           userInfo: userInfo];
  }
  </code></pre>
  
  <p>However, I'm not sure if this is the best way to send a rect struct.</p>