Browse CVS Repository
Contents of /undmail/guiproto/CustomViewTableDataSource.m
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( show annotations)
( download)
Mon Nov 25 04:09:17 2002 UTC
(21 years, 3 months ago)
by footashida
Branch: MAIN
CVS Tags: HEAD
*** empty log message ***
| 1 |
// |
| 2 |
// CustomViewTableDataSource.m |
| 3 |
// undproto |
| 4 |
// |
| 5 |
// |
| 6 |
|
| 7 |
#import "CustomViewTableDataSource.h" |
| 8 |
|
| 9 |
@implementation CustomViewTableDataSource |
| 10 |
- (int)numberOfRowsInTableView:(NSTableView *)aTableView{ |
| 11 |
return 3; |
| 12 |
} |
| 13 |
- (id)tableView:(NSTableView *)aTableView |
| 14 |
objectValueForTableColumn:(NSTableColumn *)aTableColumn |
| 15 |
row:(int)rowIndex{ |
| 16 |
|
| 17 |
NSBundle *mainBundle; |
| 18 |
mainBundle = [NSBundle mainBundle]; |
| 19 |
|
| 20 |
if(rowIndex == 0){ |
| 21 |
return [mainBundle localizedStringForKey:@"Custom_View_1" value:nil table:nil]; |
| 22 |
}else if(rowIndex == 1){ |
| 23 |
return [mainBundle localizedStringForKey:@"Custom_View_2" value:nil table:nil]; |
| 24 |
}else if(rowIndex == 2){ |
| 25 |
return [mainBundle localizedStringForKey:@"Custom_View_3" value:nil table:nil]; |
| 26 |
}else{ |
| 27 |
return @""; |
| 28 |
} |
| 29 |
|
| 30 |
} |
| 31 |
|
| 32 |
@end |
|