Fixed #23 Revert to saved now working

Fixed KVO issues with active items not being updated on tree reset
Fixed #6 Moved all move/delete/create functions into MPDocument
Intigrated OutlineViewDelegate into OutlineViewController
This commit is contained in:
michael starke
2013-06-26 01:19:44 +02:00
parent c2e9cfc7d6
commit cb18013964
17 changed files with 217 additions and 229 deletions

View File

@@ -8,22 +8,25 @@
#import "MPViewController.h"
APPKIT_EXTERN NSString *const MPOutlineViewDidChangeGroupSelection;
@class MPOutlineViewDelegate;
@class KdbGroup;
@class HNHGradientView;
@class MPDocumentWindowController;
@interface MPOutlineViewController : MPViewController
@interface MPOutlineViewController : MPViewController <NSOutlineViewDelegate>
@property (readonly, assign) NSOutlineView *outlineView;
@property (retain, readonly) MPOutlineViewDelegate *outlineDelegate;
@property (assign) IBOutlet HNHGradientView *bottomBar;
@property (assign, readonly) KdbGroup *selectedGroup;
- (void)clearSelection;
- (void)showOutline;
- (void)setupNotifications:(MPDocumentWindowController *)windowController;
- (void)createGroup:(id)sender;
- (void)createEntry:(id)sender;
- (void)deleteEntry:(id)sender;
- (void)deleteNode:(id)sender;
@end