Develop and Download Open Source Software

Browse CVS Repository

Contents of /undmail/guiproto/MainController.m

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


Revision 1.2 - (show annotations) (download)
Sun Nov 17 03:58:21 2002 UTC (21 years, 5 months ago) by footashida
Branch: MAIN
Changes since 1.1: +11 -8 lines
*** empty log message ***

1 #import "MainController.h"
2 #import "DummyOutlineDataSource.h"
3 #import "MainToolbarSource.h"
4 #import "IconedCell.h"
5 #import "ComposeToolbarSource.h"
6
7 @implementation MainController
8 -(void)awakeFromNib{
9 DummyOutlineDataSource *ds;
10 NSToolbar *toolbar;
11 MainToolbarSource *mainToolbarSource;
12 ComposeToolbarSource *composeToolbarSource;
13
14 ds = [[DummyOutlineDataSource alloc] init];
15 [folderTree setDataSource:ds];
16
17 toolbar = [[NSToolbar alloc] initWithIdentifier:@"myToolBar"];
18 mainToolbarSource = [[MainToolbarSource alloc] initWithController:self];
19 [toolbar setDelegate:mainToolbarSource];
20 [window setToolbar:toolbar];
21 [toolbar release];
22
23 toolbar = [[NSToolbar alloc] initWithIdentifier:@"componentToolBar"];
24 composeToolbarSource = [[ComposeToolbarSource alloc] initWithController:self];
25 [toolbar setDelegate:composeToolbarSource];
26 [composeWindow setToolbar:toolbar];
27 [toolbar release];
28
29 }
30 - (void)applicationDidFinishLaunching:(NSNotification*)notif
31 {
32 NSTableColumn* tableColumn;
33 IconedCell* iconedCell;
34 // �t�H���_�c���[���A�A�C�R��+�������\���������������ACell�����X���s���B
35 tableColumn = [folderTree tableColumnWithIdentifier:@"folderview"];
36 iconedCell = [[[IconedCell alloc] init] autorelease];
37 [tableColumn setDataCell:iconedCell];
38 }
39 -(IBAction)createNewMessage:(id)sender{
40 [composeWindow makeKeyAndOrderFront:nil];
41 }
42 -(IBAction)findMessage:(id)sender{
43 [searchWindow makeKeyAndOrderFront:nil];
44 }
45 -(IBAction)showPreference:(id)sender{
46 [preferenceWindow makeKeyAndOrderFront:nil];
47 }
48
49 @end

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