Changeset 813 for trunk/macosx/MessageWindowController.m
- Timestamp:
- Aug 22, 2006, 1:08:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/MessageWindowController.m
r812 r813 30 30 #define LEVEL_DEBUG 2 31 31 32 #define UPDATE_SECONDS 0. 532 #define UPDATE_SECONDS 0.35 33 33 34 34 @interface MessageWindowController (Private) … … 124 124 return; 125 125 126 //keep scrolled to bottom if already at bottom or there is no scroll bar yet 127 BOOL shouldScroll = NO; 128 NSScroller * scroller = [fScrollView verticalScroller]; 129 if ([scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0) 130 shouldScroll = YES; 131 126 132 [fLock lock]; 127 133 … … 130 136 while ((messageString = [enumerator nextObject])) 131 137 [[fTextView textStorage] appendAttributedString: messageString]; 132 133 138 [fBufferArray removeAllObjects]; 134 139 135 140 [fLock unlock]; 141 142 if (shouldScroll) 143 [fTextView scrollRangeToVisible: NSMakeRange([[fTextView string] length], 0)]; 136 144 } 137 145 … … 145 153 else 146 154 level = TR_MSG_ERR; 155 156 [self updateLog: nil]; 147 157 148 158 tr_setMessageLevel(level);
Note: See TracChangeset
for help on using the changeset viewer.