cleaned up code

This commit is contained in:
michael starke
2016-08-30 19:02:51 +02:00
parent 7a14506156
commit c1d4bcbfd9
3 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
return YES;
}
- (id)init {
- (instancetype)init {
self = [super init];
if(self) {
_didLockFile = NO;

View File

@@ -306,6 +306,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
self.passwordEditWindowController.delegate = self;
}
[self.document addWindowController:self.passwordEditWindowController];
[NSApp beginSheet:self.passwordEditWindowController.window
modalForWindow:self.window
modalDelegate:self

View File

@@ -31,7 +31,6 @@
- (id)initWithWindow:(NSWindow *)window {
self = [super initWithWindow:window];
if(self){
//_allowsEmptyPasswordOrKey = YES;
_showPassword = NO;
_hasValidPasswordOrKey = NO;
}