Changeset 1537
- Timestamp:
- 08/27/04 19:31:49 (4 years ago)
- Files:
-
- WiredClient/trunk/WCChat.m (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.m
r1532 r1537 1 /* $Id: WCChat.m,v 1.6 4 2004/08/24 18:38:45morris Exp $ */1 /* $Id: WCChat.m,v 1.65 2004/08/27 17:31:49 morris Exp $ */ 2 2 3 3 /* … … 681 681 NSDate *date; 682 682 double interval; 683 float position; 683 684 int i, length, offset; 684 685 … … 769 770 770 771 // --- append 772 position = [[_chatOutputScrollView verticalScroller] floatValue]; 771 773 [_chatOutputTextView appendString:output withURL:YES withChat:YES]; 772 774 773 775 // --- scroll 774 if( [[_chatOutputScrollView verticalScroller] floatValue]== 1.0) {776 if(position == 1.0) { 775 777 [_chatOutputTextView scrollRangeToVisible: 776 778 NSMakeRange([[_chatOutputTextView textStorage] length], 0)]; … … 792 794 WCUser *user; 793 795 double interval; 796 float position; 794 797 795 798 // --- get objects … … 864 867 865 868 // --- append 869 position = [[_chatOutputScrollView verticalScroller] floatValue]; 866 870 [_chatOutputTextView appendString:output withURL:YES withChat:YES]; 867 871 868 872 // --- scroll 869 if( [[_chatOutputScrollView verticalScroller] floatValue]== 1.0) {873 if(position == 1.0) { 870 874 [_chatOutputTextView scrollRangeToVisible: 871 875 NSMakeRange([[_chatOutputTextView textStorage] length], 0)]; … … 1337 1341 - (void)printEvent:(NSString *)argument { 1338 1342 NSString *output, *time; 1343 float position; 1339 1344 1340 1345 // --- build the output string … … 1354 1359 1355 1360 // --- append 1361 position = [[_chatOutputScrollView verticalScroller] floatValue]; 1356 1362 [_chatOutputTextView appendString:output withURL:NO withChat:YES]; 1357 1363 1358 1364 // --- scroll 1359 if( [[_chatOutputScrollView verticalScroller] floatValue]== 1.0) {1365 if(position == 1.0) { 1360 1366 [_chatOutputTextView scrollRangeToVisible: 1361 1367 NSMakeRange([[_chatOutputTextView textStorage] length], 0)];
