Ignore:
Timestamp:
Mar 13, 2008, 10:49:48 AM (14 years ago)
Author:
livings124
Message:

#138 per-torrent messages in the mac client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/MessageWindowController.m

    r5030 r5245  
    129129            [message setObject: [NSNumber numberWithInt: currentMessage->line] forKey: @"Line"];
    130130        }
     131       
     132        if (currentMessage->name != NULL)
     133            [message setObject: [NSString stringWithUTF8String: currentMessage->name] forKey: @"Name"];
    131134                               
    132135        [fMessages addObject: message];
     
    184187        }
    185188    }
     189    else if ([ident isEqualToString: @"Name"])
     190        return [message objectForKey: @"Name"];
    186191    else
    187192        return [message objectForKey: @"Message"];
     
    345350    NSMutableArray * strings = [NSMutableArray arrayWithObjects: [message objectForKey: @"Date"], level,
    346351                                [message objectForKey: @"Message"], nil];
     352   
     353    NSString * torrent;
     354    if ((torrent = [message objectForKey: @"Name"]))
     355        [strings insertObject: [torrent stringByAppendingString: @":"] atIndex: 2];
     356   
    347357    NSString * file;
    348358    if ((file = [self fileForMessage: message]))
Note: See TracChangeset for help on using the changeset viewer.