- textFrame.size = [scrollView_ contentSize];
- textView_ = [[BSSourceViewTextView alloc] initWithFrame:textFrame];
- [textView_ setSourceView:self];
- [textView_ setEditable:NO];
- [textView_ setFont:[[self class] sourceFont]];
- [textView_ setHorizontallyResizable:YES];
- [textView_ setVerticallyResizable:YES];
- [textView_ setMinSize:textFrame.size];
- [textView_ setMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)];
- [[textView_ textContainer] setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)];
- [[textView_ textContainer] setWidthTracksTextView:NO];
- [[textView_ textContainer] setHeightTracksTextView:NO];
- [textView_ setAutoresizingMask:NSViewNotSizable];
- [scrollView_ setDocumentView:textView_];
+ textFrame.size = [_scrollView contentSize];
+ _textView = [[BSSourceViewTextView alloc] initWithFrame:textFrame];
+ [_textView setSourceView:self];
+ [_textView setEditable:NO];
+ [_textView setFont:[[self class] sourceFont]];
+ [_textView setHorizontallyResizable:YES];
+ [_textView setVerticallyResizable:YES];
+ [_textView setMinSize:textFrame.size];
+ [_textView setMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)];
+ [[_textView textContainer] setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)];
+ [[_textView textContainer] setWidthTracksTextView:NO];
+ [[_textView textContainer] setHeightTracksTextView:NO];
+ [_textView setAutoresizingMask:NSViewNotSizable];
+ [_scrollView setDocumentView:_textView];