Browse CVS Repository
Annotation of /undmail/guiproto/TextColorTableDataSource.m
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( hide annotations)
( download)
Sun Nov 24 13:45:06 2002 UTC
(21 years, 4 months ago)
by footashida
Branch: MAIN
CVS Tags: HEAD
*** empty log message ***
| 1 |
footashida |
1.1 |
// |
| 2 |
|
|
// TextColorTableDataSource.m |
| 3 |
|
|
// undproto |
| 4 |
|
|
// |
| 5 |
|
|
// |
| 6 |
|
|
|
| 7 |
|
|
#import "TextColorTableDataSource.h" |
| 8 |
|
|
|
| 9 |
|
|
|
| 10 |
|
|
@implementation TextColorTableDataSource |
| 11 |
|
|
- (int)numberOfRowsInTableView:(NSTableView *)aTableView{ |
| 12 |
|
|
return 7; |
| 13 |
|
|
} |
| 14 |
|
|
- (id)tableView:(NSTableView *)aTableView |
| 15 |
|
|
objectValueForTableColumn:(NSTableColumn *)aTableColumn |
| 16 |
|
|
row:(int)rowIndex{ |
| 17 |
|
|
|
| 18 |
|
|
NSBundle *mainBundle; |
| 19 |
|
|
mainBundle = [NSBundle mainBundle]; |
| 20 |
|
|
|
| 21 |
|
|
if(rowIndex == 0){ |
| 22 |
|
|
return [mainBundle localizedStringForKey:@"TextType_Quote_1" value:nil table:nil]; |
| 23 |
|
|
}else if(rowIndex == 1){ |
| 24 |
|
|
return [mainBundle localizedStringForKey:@"TextType_Quote_2" value:nil table:nil]; |
| 25 |
|
|
}else if(rowIndex == 2){ |
| 26 |
|
|
return [mainBundle localizedStringForKey:@"TextType_Quote_3" value:nil table:nil]; |
| 27 |
|
|
}else if(rowIndex == 3){ |
| 28 |
|
|
return [mainBundle localizedStringForKey:@"TextType_Quote_4" value:nil table:nil]; |
| 29 |
|
|
}else if(rowIndex == 4){ |
| 30 |
|
|
return [mainBundle localizedStringForKey:@"TextType_Header" value:nil table:nil]; |
| 31 |
|
|
}else if(rowIndex == 5){ |
| 32 |
|
|
return [mainBundle localizedStringForKey:@"TextType_MailAddress" value:nil table:nil]; |
| 33 |
|
|
}else if(rowIndex == 6){ |
| 34 |
|
|
return [mainBundle localizedStringForKey:@"TextType_General" value:nil table:nil]; |
| 35 |
|
|
}else{ |
| 36 |
|
|
return @""; |
| 37 |
|
|
} |
| 38 |
|
|
|
| 39 |
|
|
} |
| 40 |
|
|
|
| 41 |
|
|
@end |
|