mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
Introduced custom save palen accessory view to enable save in different formats (unfunctional for now) Started reworking drag and drop of entries and groups
37 lines
685 B
Objective-C
37 lines
685 B
Objective-C
//
|
|
// MPSheetWindowController.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 10.08.13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "MPSheetWindowController.h"
|
|
|
|
@implementation MPSheetWindowController
|
|
|
|
- (id)initWithWindow:(NSWindow *)window {
|
|
self = [super initWithWindow:window];
|
|
if(self) {
|
|
_isDirty = YES;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (NSWindow *)window {
|
|
NSWindow *window = [super window];
|
|
[self updateView];
|
|
return window;
|
|
}
|
|
|
|
- (void)updateView {
|
|
// do nothing
|
|
}
|
|
|
|
- (void)dismissSheet:(NSInteger)returnCode {
|
|
self.isDirty = YES;
|
|
[NSApp endSheet:[super window] returnCode:returnCode];
|
|
[[super window] orderOut:self];
|
|
}
|
|
@end
|