title: NSScrollView background image in Lion
body: <p>I'm working on a Mac application with an <code>NSScrollView</code>, and I want the <code>NSScrollView</code> to have a custom background image. I used this code in the custom documentView <code>NSView</code> subclass:</p>
  
  <pre><code>- (void)drawRect:(NSRect)rect {
      [[NSColor colorWithPatternImage:[NSImage imageNamed:@"wood.jpg"]] set];
      NSRectFill(rect);
  }
  </code></pre>
  
  <p>That displays a pattern image as a background for the documentView. </p>
  
  <p>But now in Mac OS X Lion, the <code>NSScrollView</code> bounces when scrolling further than possible, showing ugly white space. How can I make the white space also being covered by the background image?</p>