mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-25 17:19:24 +00:00
Made project compile again
This commit is contained in:
@@ -8,46 +8,21 @@
|
||||
|
||||
#import "MPAppDelegate.h"
|
||||
|
||||
#import "MPDatabaseDocument.h"
|
||||
#import "MPOutlineDataSource.h"
|
||||
#import "MPOutlineViewDelegate.h"
|
||||
#import "MPMainWindowController.h"
|
||||
#import "MPSettingsController.h"
|
||||
|
||||
NSString *const kColumnIdentifier = @"OutlineColumn";
|
||||
NSString *const kOutlineViewIdentifier = @"OutlineView";
|
||||
|
||||
@interface MPAppDelegate ()
|
||||
@property (assign) IBOutlet NSOutlineView *outlineView;
|
||||
@property (retain) MPSettingsController *settingsController;
|
||||
@property (retain) MPOutlineDataSource *datasource;
|
||||
@property (retain) MPOutlineViewDelegate *outlineDelegate;
|
||||
@property (retain) MPDatabaseDocument *database;
|
||||
- (void)updateData;
|
||||
@property (retain) MPMainWindowController *mainWindowController;
|
||||
- (IBAction)showPreferences:(id)sender;
|
||||
@end
|
||||
|
||||
@implementation MPAppDelegate
|
||||
|
||||
@synthesize outlineView = _outlineView;
|
||||
@synthesize window = _window;
|
||||
@synthesize database = _database;
|
||||
@synthesize outlineDelegate = _outlineDelegate;
|
||||
@synthesize datasource = _datasource;
|
||||
@synthesize settingsController = _settingsController;
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||
{
|
||||
_outlineDelegate = [[MPOutlineViewDelegate alloc] init];
|
||||
_datasource = [[MPOutlineDataSource alloc] init];
|
||||
[[_outlineView outlineTableColumn] setIdentifier:kColumnIdentifier];
|
||||
[_outlineView setDelegate:_outlineDelegate];
|
||||
[_outlineView setDataSource:_datasource];
|
||||
// register for sucessfull document loads
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateData) name:MPDidLoadDataBaseNotification object:_database];
|
||||
}
|
||||
|
||||
- (void)updateData {
|
||||
[_outlineView reloadData];
|
||||
_mainWindowController = [[MPMainWindowController alloc] init];
|
||||
[_mainWindowController showWindow:[_mainWindowController window]];
|
||||
}
|
||||
|
||||
#pragma mark IBActions
|
||||
@@ -56,7 +31,6 @@ NSString *const kOutlineViewIdentifier = @"OutlineView";
|
||||
_settingsController = [[MPSettingsController alloc] init];
|
||||
}
|
||||
[_settingsController showWindow:_settingsController.window];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user