Changeset 813 for trunk/macosx
- Timestamp:
- Aug 22, 2006, 1:08:44 AM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/English.lproj/MessageWindow.nib/classes.nib
r807 r813 6 6 CLASS = MessageWindowController; 7 7 LANGUAGE = ObjC; 8 OUTLETS = {fLevelButton = NSPopUpButton; fTextView = NSTextView; }; 8 OUTLETS = { 9 fLevelButton = NSPopUpButton; 10 fScrollView = NSScrollView; 11 fTextView = NSTextView; 12 }; 9 13 SUPERCLASS = NSWindowController; 10 14 } -
trunk/macosx/MessageWindowController.h
r811 r813 28 28 { 29 29 IBOutlet NSTextView * fTextView; 30 IBOutlet NSScrollView * fScrollView; 31 30 32 IBOutlet NSPopUpButton * fLevelButton; 31 33 -
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.