Initial commit for Project with ignore file

This commit is contained in:
michael starke
2012-07-19 16:04:46 +02:00
parent 55b2910183
commit 60a8267396
16 changed files with 1762 additions and 2595 deletions

View File

@@ -8,13 +8,40 @@
#import "MPAppDelegate.h"
#import "MPDatabaseDocument.h"
#import "MPOutlineDataSource.h"
#import "MPOutlineViewDelegate.h"
NSString *const kColumnIdentifier = @"OutlineColumn";
NSString *const kOutlineViewIdentifier = @"OutlineView";
@interface MPAppDelegate ()
@property (assign) IBOutlet NSOutlineView *outlineView;
@property (retain) MPOutlineDataSource *datasource;
@property (retain) MPOutlineViewDelegate *outlineDelegate;
@property (retain) MPDatabaseDocument *database;
@end
@implementation MPAppDelegate
@synthesize outlineView = _outlineView;
@synthesize window = _window;
@synthesize outlineImage = _OutlineImage;
@synthesize outlineText = _outlineText;
@synthesize database = _database;
@synthesize outlineDelegate = _outlineDelegate;
@synthesize datasource = _datasource;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Insert code here to initialize your application
_database = [[MPDatabaseDocument alloc] initWithFile:nil andPassword:@""];
_outlineDelegate = [[MPOutlineViewDelegate alloc] init];
_datasource = [[MPOutlineDataSource alloc] init];
[_outlineView setDelegate:_outlineDelegate];
[_outlineView setDataSource:_datasource];
// show open dialog?
// show main window?
}
@end