Changeset 820
- Timestamp:
- Aug 22, 2006, 3:11:24 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/MessageWindowController.m
r819 r820 87 87 for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next) 88 88 { 89 //new line if text view is not empty 90 if (currentMessage != messages || ![[fTextView string] isEqualToString: @""]) 91 [[fTextView textStorage] appendAttributedString: [[[NSAttributedString alloc] 92 initWithString: @"\n"] autorelease]]; 93 89 94 int level = currentMessage->level; 90 95 if (level == TR_MSG_ERR) … … 99 104 dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when] 100 105 dateWithCalendarFormat: @"%Y-%m-%d %H:%M:%S" timeZone: nil]; 101 messageString = [[[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s \n",106 messageString = [[[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s", 102 107 dateString, levelString, currentMessage->message]] autorelease]; 103 108
Note: See TracChangeset
for help on using the changeset viewer.