Changeset 814


Ignore:
Timestamp:
Aug 22, 2006, 1:59:46 AM (15 years ago)
Author:
livings124
Message:

Larger default message window, font matching default Console look, and show date (in same format as Console).

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/English.lproj/MessageWindow.nib/info.nib

    r807 r814  
    44<dict>
    55        <key>IBDocumentLocation</key>
    6         <string>69 64 356 240 0 0 1152 842 </string>
     6        <string>25 72 356 240 0 0 1152 842 </string>
    77        <key>IBFramework Version</key>
    88        <string>446.1</string>
  • trunk/macosx/MessageWindowController.m

    r813 r814  
    9999
    100100    NSString * levelString;
    101    
     101
    102102    if (level == TR_MSG_ERR)
    103103        levelString = @"ERR";
     
    110110   
    111111    NSAttributedString * messageString = [[[NSAttributedString alloc] initWithString:
    112                             [NSString stringWithFormat: @"%@: %s\n", levelString, message]] autorelease];
     112            [NSString stringWithFormat: @"(%@ %@) %s\n", [[NSDate date] dateWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F"
     113                                timeZone: nil], levelString, message]] autorelease];
    113114   
    114115    [fLock lock];
     
    124125        return;
    125126   
     127    [fLock lock];
     128   
    126129    //keep scrolled to bottom if already at bottom or there is no scroll bar yet
    127130    BOOL shouldScroll = NO;
     
    129132    if ([scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0)
    130133        shouldScroll = YES;
    131    
    132     [fLock lock];
    133134   
    134135    NSEnumerator * enumerator = [fBufferArray objectEnumerator];
     
    138139    [fBufferArray removeAllObjects];
    139140   
    140     [fLock unlock];
     141    [fTextView setFont: [NSFont fontWithName: @"Monaco" size: 10]]; //find a way to set this permanently
    141142   
    142143    if (shouldScroll)
    143144        [fTextView scrollRangeToVisible: NSMakeRange([[fTextView string] length], 0)];
     145   
     146    [fLock unlock];
    144147}
    145148
Note: See TracChangeset for help on using the changeset viewer.