Browse CVS Repository
Diff of /undmail/guiproto/MailBoxTableDataSource.m
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 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; |
| 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 |
|
|
|