Adopting new KeePassKit APi. Codestyle

This commit is contained in:
michael starke
2017-05-16 15:30:43 +02:00
parent 9beca326a1
commit 970ca49357
6 changed files with 16 additions and 16 deletions

View File

@@ -439,7 +439,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
return; // We are displaying the entries already
}
if(contentView.subviews.count == 1) {
[contentView.subviews[0] removeFromSuperviewWithoutNeedingDisplay];
[contentView.subviews.firstObject removeFromSuperviewWithoutNeedingDisplay];
}
[contentView addSubview:self.splitView];
NSView *outlineView = self.outlineViewController.view;
@@ -565,8 +565,8 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
#pragma mark UI Helper
- (BOOL)_isInspectorVisible {
NSView *inspectorView = [self.inspectorViewController view];
return (nil != [inspectorView superview]);
NSView *inspectorView = self.inspectorViewController.view;
return (nil != inspectorView.superview);
}
@end