Changeset 823 for trunk/macosx
- Timestamp:
- Aug 22, 2006, 7:50:45 PM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/MessageWindowController.m
r822 r823 40 40 fTimer = [NSTimer scheduledTimerWithTimeInterval: UPDATE_SECONDS target: self 41 41 selector: @selector(updateLog:) userInfo: nil repeats: YES]; 42 fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: [NSFont fontWithName: @"Monaco" size: 10], 43 NSFontAttributeName, nil]; 42 43 NSMutableParagraphStyle * paragraph = [[NSMutableParagraphStyle defaultParagraphStyle] mutableCopy]; 44 [paragraph setHeadIndent: 20.0]; 45 46 fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: 47 [NSFont fontWithName: @"Monaco" size: 10], NSFontAttributeName, 48 paragraph, NSParagraphStyleAttributeName, nil]; 44 49 45 50 [[self window] update]; //make sure nib is loaded right away … … 86 91 BOOL shouldScroll = [scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0; 87 92 88 NSAttributedString * messageString; 89 NSString * levelString; 90 NSCalendarDate * dateString; 93 NSMutableAttributedString * messageString; 94 NSString * levelString, * dateString; 91 95 for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next) 92 96 { … … 107 111 108 112 dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when] 109 d ateWithCalendarFormat: @"%1m/%d %H:%M:%S" timeZone: nil];110 messageString = [[[NS AttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s",113 descriptionWithCalendarFormat: @"%1m/%d %H:%M:%S" timeZone: nil locale: nil]; 114 messageString = [[[NSMutableAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s", 111 115 dateString, levelString, currentMessage->message] attributes: fAttributes] autorelease]; 112 116
Note: See TracChangeset
for help on using the changeset viewer.