From 0f0e187bc8d1babbb346caeea706efc4927a7774 Mon Sep 17 00:00:00 2001 From: michael starke Date: Fri, 19 Aug 2016 16:57:40 +0200 Subject: [PATCH] Removed unused property --- MacPass/MPEntryInspectorViewController.m | 3 --- MacPass/MPObjectController.h | 13 +++++++++++++ MacPass/MPObjectController.m | 13 +++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 MacPass/MPObjectController.h create mode 100644 MacPass/MPObjectController.m diff --git a/MacPass/MPEntryInspectorViewController.m b/MacPass/MPEntryInspectorViewController.m index 89296708..d10b07db 100644 --- a/MacPass/MPEntryInspectorViewController.m +++ b/MacPass/MPEntryInspectorViewController.m @@ -51,7 +51,6 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) { @property (nonatomic, assign) MPEntryTab activeTab; @property (strong) NSPopover *activePopover; @property (strong) NSObjectController *entryController; -@property (readonly, nonatomic) KPKEntry *contentEntry; //@property (nonatomic, weak) KPKEntry *entry; @@ -65,7 +64,6 @@ static NSString *kMPContentBindingString1 = @"content.%@"; static NSString *kMPContentBindingString2 = @"content.%@.%@"; static NSString *kMPContentBindingString3 = @"content.%@.%@.%@"; - - (NSString *)nibName { return @"EntryInspectorView"; } @@ -132,7 +130,6 @@ static NSString *kMPContentBindingString3 = @"content.%@.%@.%@"; - (void)setupBindings:(MPDocument *)document { [self.entryController bind:NSContentObjectBinding toObject:self withKeyPath:NSStringFromSelector(@selector(representedObject)) options:nil]; - // [self.entryController bind:NSContentObjectBinding toObject:document withKeyPath:NSStringFromSelector(@selector(selectedEntry)) options:nil]; } - (void)registerNotificationsForDocument:(MPDocument *)document { diff --git a/MacPass/MPObjectController.h b/MacPass/MPObjectController.h new file mode 100644 index 00000000..724fa36f --- /dev/null +++ b/MacPass/MPObjectController.h @@ -0,0 +1,13 @@ +// +// MPObjectController.h +// MacPass +// +// Created by Michael Starke on 18/08/16. +// Copyright © 2016 HicknHack Software GmbH. All rights reserved. +// + +#import + +@interface MPObjectController : NSObjectController + +@end diff --git a/MacPass/MPObjectController.m b/MacPass/MPObjectController.m new file mode 100644 index 00000000..458c9432 --- /dev/null +++ b/MacPass/MPObjectController.m @@ -0,0 +1,13 @@ +// +// MPObjectController.m +// MacPass +// +// Created by Michael Starke on 18/08/16. +// Copyright © 2016 HicknHack Software GmbH. All rights reserved. +// + +#import "MPObjectController.h" + +@implementation MPObjectController + +@end