NSScrollView中的tile方法重载?

 
- (void)tile 
{     
      [super tile];      // We move the scroll to be just below the scrollView     
      NSScroller *verticalScroller = [self verticalScroller];     
      NSRect verticalScrollerFrame = [verticalScroller frame];     
      verticalScrollerFrame.origin.x -= 117.0;     
      [verticalScroller setFrame:verticalScrollerFrame];      // We expand the scrollview to embrace the whole window     
       NSRect scrollViewFrame = [self frame];     
       scrollViewFrame.size.width = 655.0;     
       [self setFrame:scrollViewFrame];  
} 

NSRect scrollViewFrame = [[self contentView] frame]; 
scrollViewFrame.size.width = 655.0; 
[[self contentView] setFrame:scrollViewFrame]; 

你可能感兴趣的:(scroll)