title: How to Animate scrollpoint?
body: <pre><code>- (void)mouseDragged:(NSEvent *)theEvent {
      NSSize dynamicImageSize;
      dynamicImageSize = [[self image] size];
      NSSize contentSize = [(NSScrollView*)[[self superview] superview] contentSize];
      if(dynamicImageSize.height &gt; contentSize.height || dynamicImageSize.width &gt; contentSize.width)
      {
          float x = startOrigin.x - ([theEvent locationInWindow].x - startPt.x);
          float y = startOrigin.y - ([theEvent locationInWindow].y - startPt.y);
          [self scrollPoint:NSMakePoint(x, y)];
      }
  }
  </code></pre>
  
  <p>In the above code I need to animate the scrolling. How can I achieve this? 
  Thanks.</p>