Develop and Download Open Source Software

Browse CVS Repository

Diff of /undmail/guiproto/MailBoxTableDataSource.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by footashida, Sun Jan 26 14:50:49 2003 UTC revision 1.3 by footashida, Wed Jan 29 18:30:41 2003 UTC
# Line 9  Line 9 
9      [mailBox retain];      [mailBox retain];
10      return self;      return self;
11  }  }
12    -(void)dealloc{
13        [mailBox release];
14        [super dealloc];
15    }
16  -(void)changeMailBox:(DUMMailBox *)newMailBox{  -(void)changeMailBox:(DUMMailBox *)newMailBox{
17      [mailBox release];      [mailBox release];
18      mailBox = newMailBox;      mailBox = newMailBox;
# Line 22  Line 26 
26          row:(int)rowIndex{          row:(int)rowIndex{
27      DUMMail *mail = [mailBox mailAtIndex:rowIndex];      DUMMail *mail = [mailBox mailAtIndex:rowIndex];
28      if([[aTableColumn identifier] isEqual:@"FROM"]){      if([[aTableColumn identifier] isEqual:@"FROM"]){
29          return [mail from];          return [[mail from] nickname];
30      }else if([[aTableColumn identifier] isEqual:@"SUBJECT"]){      }else if([[aTableColumn identifier] isEqual:@"SUBJECT"]){
31          return [mail subject];          return [mail subject];
32        }else if([[aTableColumn identifier] isEqual:@"DATE"]){
33            return [[mail date]
34                descriptionWithCalendarFormat:@"%Y/%m/%d %H:%M"];
35        }else if([[aTableColumn identifier] isEqual:@"STATUS"]){
36            return ([mail isUnread]) ? @"N" : @"";
37      }else{      }else{
38          return @"";          return @"";
39      }      }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26