Changeset 819
- Timestamp:
- Aug 22, 2006, 2:56:09 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Transmission.xcodeproj/project.pbxproj
r810 r819 262 262 4DCCBB3C09C3D71100D3CABF /* TorrentCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TorrentCell.m; path = macosx/TorrentCell.m; sourceTree = "<group>"; }; 263 263 4DCCBB3D09C3D71100D3CABF /* TorrentCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TorrentCell.h; path = macosx/TorrentCell.h; sourceTree = "<group>"; }; 264 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };264 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; }; 265 265 4DDBB71B09E16BF100284745 /* transmissioncli.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = transmissioncli.c; path = cli/transmissioncli.c; sourceTree = "<group>"; }; 266 266 4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownloadBadge.png; path = macosx/Images/DownloadBadge.png; sourceTree = "<group>"; }; -
trunk/macosx/MessageWindowController.m
r818 r819 74 74 - (void) updateLog: (NSTimer *) timer 75 75 { 76 tr_msg_list_t * messages = tr_getQueuedMessages(), * currentMessage;77 if (! messages)76 tr_msg_list_t * messages, * currentMessage; 77 if (!(messages = tr_getQueuedMessages())) 78 78 return; 79 79 … … 84 84 NSAttributedString * messageString; 85 85 NSString * levelString; 86 NSCalendarDate * dateString; 86 87 for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next) 87 88 { … … 96 97 levelString = @"???"; 97 98 98 messageString = [[[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %s\n", 99 levelString, currentMessage->message]] autorelease]; 99 dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when] 100 dateWithCalendarFormat: @"%Y-%m-%d %H:%M:%S" timeZone: nil]; 101 messageString = [[[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s\n", 102 dateString, levelString, currentMessage->message]] autorelease]; 103 100 104 [[fTextView textStorage] appendAttributedString: messageString]; 101 105 }
Note: See TracChangeset
for help on using the changeset viewer.