Develop and Download Open Source Software

Browse CVS Repository

Annotation of /undmail/guiproto/MainController.m

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


Revision 1.2 - (hide 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 footashida 1.1 #import "MainController.h"
2     #import "DummyOutlineDataSource.h"
3 footashida 1.2 #import "MainToolbarSource.h"
4 footashida 1.1 #import "IconedCell.h"
5 footashida 1.2 #import "ComposeToolbarSource.h"
6 footashida 1.1
7     @implementation MainController
8     -(void)awakeFromNib{
9     DummyOutlineDataSource *ds;
10     NSToolbar *toolbar;
11 footashida 1.2 MainToolbarSource *mainToolbarSource;
12     ComposeToolbarSource *composeToolbarSource;
13 footashida 1.1
14     ds = [[DummyOutlineDataSource alloc] init];
15     [folderTree setDataSource:ds];
16    
17     toolbar = [[NSToolbar alloc] initWithIdentifier:@"myToolBar"];
18 footashida 1.2 mainToolbarSource = [[MainToolbarSource alloc] initWithController:self];
19     [toolbar setDelegate:mainToolbarSource];
20 footashida 1.1 [window setToolbar:toolbar];
21     [toolbar release];
22    
23     toolbar = [[NSToolbar alloc] initWithIdentifier:@"componentToolBar"];
24 footashida 1.2 composeToolbarSource = [[ComposeToolbarSource alloc] initWithController:self];
25     [toolbar setDelegate:composeToolbarSource];
26 footashida 1.1 [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 footashida 1.2 }
45     -(IBAction)showPreference:(id)sender{
46     [preferenceWindow makeKeyAndOrderFront:nil];
47 footashida 1.1 }
48    
49     @end

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