title: Cocoa WebView scrollbars won't disappear
body: <p>I load the webview and set allowsScrolling to NO, but webview still shows scroll bars... Banging your head on your computer hurts a lot more now that MacBooks have sharp metal edges.</p>
  
  <p>My code:</p>
  
  <pre><code>- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
      // Insert code here to initialize your application
      NSString *webFolder = @"file:///&lt;WebFolderPath&gt;";
      [[[productWeb mainFrame] frameView] setAllowsScrolling:NO];
      [productWeb setFrameLoadDelegate:self];
      [[productWeb mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[webFolder stringByAppendingString:@"webpage.html"]]]];
  }
  </code></pre>
  
  <p>I even setup the frame loading delegate to report about the scrolling status:</p>
  
  <pre><code>- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
  {
      NSLog(@"Scrolling %@",[[frame frameView] allowsScrolling] ? @"Allowed" : @"Not Allowed");
      [[frame frameView] setAllowsScrolling:NO];
      NSLog(@"Scrolling %@",[[frame frameView] allowsScrolling] ? @"Allowed" : @"Not Allowed");
  }
  </code></pre>
  
  <p>Which still gives me the unhappy:</p>
  
  <pre><code>2010-08-24 15:20:09.102 myApp[30437:a0f] Scrolling Allowed
  2010-08-24 15:20:09.104 myApp[30437:a0f] Scrolling Not Allowed
  </code></pre>
  
  <p>And yet the scrollbars continue to show!  Hopefully, it is something stupid I'm doing as I don't want to get any more blood on my laptop.</p>