mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
Using KeePassKit Framework
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -10,3 +10,6 @@
|
||||
[submodule "TransformerKit"]
|
||||
path = TransformerKit
|
||||
url = https://github.com/mattt/TransformerKit.git
|
||||
[submodule "KeePassKit"]
|
||||
path = KeePassKit
|
||||
url = https://mstarke@github.com/mstarke/KeePassKit.git
|
||||
|
||||
1
KeePassKit
Submodule
1
KeePassKit
Submodule
Submodule KeePassKit added at 23f6007746
@@ -178,6 +178,8 @@
|
||||
4C7F8B681A10B68400CCB83D /* WelcomeWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C7F8B6A1A10B68400CCB83D /* WelcomeWindow.xib */; };
|
||||
4C80BB6F176DE06F00E5E248 /* HNHScrollDocumentViewAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C80BB6E176DE06F00E5E248 /* HNHScrollDocumentViewAdapter.m */; };
|
||||
4C811C8316ECD06E00C4BAC6 /* MPKeyfilePathControlDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C811C8216ECD06E00C4BAC6 /* MPKeyfilePathControlDelegate.m */; };
|
||||
4C8138451BE28621001BF195 /* KeePassKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C81383E1BE28517001BF195 /* KeePassKit.framework */; };
|
||||
4C8138461BE28621001BF195 /* KeePassKit.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4C81383E1BE28517001BF195 /* KeePassKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
4C83814215BF4677001AE468 /* MPDocumentWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C83814115BF4677001AE468 /* MPDocumentWindowController.m */; };
|
||||
4C888C9016EB6C91003D34A1 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4C888C8E16EB6C91003D34A1 /* Localizable.strings */; };
|
||||
4C888C9316EB6F5E003D34A1 /* MPToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C888C9216EB6F5E003D34A1 /* MPToolbarItem.m */; };
|
||||
@@ -262,6 +264,27 @@
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
4C81383D1BE28517001BF195 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 4C8138381BE28517001BF195 /* KeePassKit.xcodeproj */;
|
||||
proxyType = 2;
|
||||
remoteGlobalIDString = 4C5CF3181BE10B650019AA81;
|
||||
remoteInfo = KeePassKit;
|
||||
};
|
||||
4C81383F1BE28517001BF195 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 4C8138381BE28517001BF195 /* KeePassKit.xcodeproj */;
|
||||
proxyType = 2;
|
||||
remoteGlobalIDString = 4C5CF3221BE10B650019AA81;
|
||||
remoteInfo = KeePassKitTests;
|
||||
};
|
||||
4C8138471BE28621001BF195 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 4C8138381BE28517001BF195 /* KeePassKit.xcodeproj */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 4C5CF3171BE10B650019AA81;
|
||||
remoteInfo = KeePassKit;
|
||||
};
|
||||
4CC5D35A18A1162100AF7FA8 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 4CC5D35218A1162100AF7FA8 /* Sparkle.xcodeproj */;
|
||||
@@ -306,6 +329,7 @@
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
4C8138461BE28621001BF195 /* KeePassKit.framework in CopyFiles */,
|
||||
4CC5D36718A1333000AF7FA8 /* Sparkle.framework in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@@ -593,6 +617,7 @@
|
||||
4C80BB6E176DE06F00E5E248 /* HNHScrollDocumentViewAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHScrollDocumentViewAdapter.m; sourceTree = "<group>"; };
|
||||
4C811C8116ECD06E00C4BAC6 /* MPKeyfilePathControlDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPKeyfilePathControlDelegate.h; sourceTree = "<group>"; };
|
||||
4C811C8216ECD06E00C4BAC6 /* MPKeyfilePathControlDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPKeyfilePathControlDelegate.m; sourceTree = "<group>"; };
|
||||
4C8138381BE28517001BF195 /* KeePassKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = KeePassKit.xcodeproj; path = KeePassKit/KeePassKit.xcodeproj; sourceTree = "<group>"; };
|
||||
4C83814015BF4677001AE468 /* MPDocumentWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPDocumentWindowController.h; sourceTree = "<group>"; };
|
||||
4C83814115BF4677001AE468 /* MPDocumentWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPDocumentWindowController.m; sourceTree = "<group>"; };
|
||||
4C888C8F16EB6C91003D34A1 /* en */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; lineEnding = 0; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.simpleColoring; };
|
||||
@@ -814,6 +839,7 @@
|
||||
4CC5D36418A1162D00AF7FA8 /* Sparkle.framework in Frameworks */,
|
||||
4C00E33B17D8FAC100F37192 /* Carbon.framework in Frameworks */,
|
||||
4CAD748E15B88AC100104512 /* libz.dylib in Frameworks */,
|
||||
4C8138451BE28621001BF195 /* KeePassKit.framework in Frameworks */,
|
||||
4CAD748C15B889B700104512 /* Security.framework in Frameworks */,
|
||||
4C77E36715B84A240093A587 /* Cocoa.framework in Frameworks */,
|
||||
);
|
||||
@@ -1180,6 +1206,7 @@
|
||||
4C77E35715B84A240093A587 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4C8138381BE28517001BF195 /* KeePassKit.xcodeproj */,
|
||||
4CC5D35218A1162100AF7FA8 /* Sparkle.xcodeproj */,
|
||||
4C00E33917D8FA3B00F37192 /* DDHotKey */,
|
||||
4C3C4E9418D6FEA100153127 /* TransformerKit */,
|
||||
@@ -1268,6 +1295,15 @@
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4C8138391BE28517001BF195 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4C81383E1BE28517001BF195 /* KeePassKit.framework */,
|
||||
4C8138401BE28517001BF195 /* KeePassKitTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4C89F525182FB4C50069C73C /* Autotype */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -1536,6 +1572,7 @@
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
4C8138481BE28621001BF195 /* PBXTargetDependency */,
|
||||
);
|
||||
name = MacPass;
|
||||
productName = MacPass;
|
||||
@@ -1574,6 +1611,10 @@
|
||||
productRefGroup = 4C77E36315B84A240093A587 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectReferences = (
|
||||
{
|
||||
ProductGroup = 4C8138391BE28517001BF195 /* Products */;
|
||||
ProjectRef = 4C8138381BE28517001BF195 /* KeePassKit.xcodeproj */;
|
||||
},
|
||||
{
|
||||
ProductGroup = 4CC5D35318A1162100AF7FA8 /* Products */;
|
||||
ProjectRef = 4CC5D35218A1162100AF7FA8 /* Sparkle.xcodeproj */;
|
||||
@@ -1588,6 +1629,20 @@
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXReferenceProxy section */
|
||||
4C81383E1BE28517001BF195 /* KeePassKit.framework */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = wrapper.framework;
|
||||
path = KeePassKit.framework;
|
||||
remoteRef = 4C81383D1BE28517001BF195 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
4C8138401BE28517001BF195 /* KeePassKitTests.xctest */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = wrapper.cfbundle;
|
||||
path = KeePassKitTests.xctest;
|
||||
remoteRef = 4C81383F1BE28517001BF195 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
4CC5D35B18A1162100AF7FA8 /* Sparkle.framework */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = wrapper.framework;
|
||||
@@ -1918,6 +1973,14 @@
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
4C8138481BE28621001BF195 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
name = KeePassKit;
|
||||
targetProxy = 4C8138471BE28621001BF195 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
4C45FB21178E09ED0010007D /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
@@ -2308,12 +2371,14 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = MacPassAppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "";
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "MacPass/MacPass-Prefix.pch";
|
||||
INFOPLIST_FILE = "MacPass/MacPass-Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.8;
|
||||
OTHER_LDFLAGS = (
|
||||
"-lxml2",
|
||||
@@ -2331,12 +2396,14 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = MacPassAppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "";
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "MacPass/MacPass-Prefix.pch";
|
||||
INFOPLIST_FILE = "MacPass/MacPass-Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.8;
|
||||
OTHER_LDFLAGS = (
|
||||
"-lxml2",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// Copyright (c) 2014 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "KPKFormat.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface KPKFormat (MPUTIDetection)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "KPKNode.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface KPKNode (IconImage)
|
||||
|
||||
|
||||
@@ -8,12 +8,7 @@
|
||||
|
||||
#import "KPKNode+IconImage.h"
|
||||
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKIcon.h"
|
||||
#import "KPKMetaData.h"
|
||||
#import "KPKNode+Private.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "MPIconHelper.h"
|
||||
|
||||
@@ -39,7 +34,7 @@
|
||||
}
|
||||
|
||||
if(self.iconUUID) {
|
||||
KPKIcon *icon = [self.tree.metaData findIcon:self.iconUUID];
|
||||
KPKIcon *icon;// = [self.tree.metaData findIcon:self.iconUUID];
|
||||
if(icon && icon.image) {
|
||||
return icon.image;
|
||||
}
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
#import "MPDocumentWindowController.h"
|
||||
#import "MPActionHelper.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#define EDIT_TEMPLATES_ITEM_TAG 10;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#import "MPTemporaryFileStorageCenter.h"
|
||||
#import "MPValueTransformerHelper.h"
|
||||
|
||||
#import "KPKCompositeKey.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDidChangeStoredKeyFilesSettings";
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
#import "MPEntryInspectorViewController.h"
|
||||
#import "MPSelectedAttachmentTableCellView.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKBinary.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "HNHTableRowView.h"
|
||||
|
||||
|
||||
@@ -16,14 +16,9 @@
|
||||
#import "MPAutotypeContext.h"
|
||||
#import "MPKeyMapper.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKAutotype.h"
|
||||
#import "KPKFormat.h"
|
||||
|
||||
#import "NSString+Commands.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import <Carbon/Carbon.h>
|
||||
|
||||
#import <CommonCrypto/CommonCrypto.h>
|
||||
|
||||
static CGKeyCode kMPFunctionKeyCodes[] = { kVK_F1, kVK_F2, kVK_F3, kVK_F4, kVK_F5, kVK_F6, kVK_F7, kVK_F8, kVK_F9, kVK_F10, kVK_F11, kVK_F12, kVK_F13, kVK_F14, kVK_F15, kVK_F16, kVK_F17, kVK_F18, kVK_F19 };
|
||||
|
||||
@@ -8,10 +8,7 @@
|
||||
|
||||
#import "MPAutotypeContext.h"
|
||||
|
||||
#import "KPKAutotype.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKWindowAssociation.h"
|
||||
#import "NSString+Commands.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPAutotypeContext () {
|
||||
NSString *_evaluatedCommand;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#import "MPSettingsHelper.h"
|
||||
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "DDHotKeyCenter.h"
|
||||
#import "DDHotKey+MacPassAdditions.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#import "MPAutotypePaste.h"
|
||||
#import "MPPasteBoardController.h"
|
||||
|
||||
#import "NSString+Commands.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPAutotypePaste ()
|
||||
|
||||
|
||||
@@ -7,9 +7,8 @@
|
||||
//
|
||||
|
||||
#import "MPContextBarViewController.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KPKMetaData.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "MPDocument.h"
|
||||
#import "MPFlagsHelper.h"
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
#import "MPCustomFieldTableCellView.h"
|
||||
#import "MPEntryInspectorViewController.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKAttribute.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@implementation MPCustomFieldTableViewDelegate
|
||||
|
||||
|
||||
@@ -14,19 +14,13 @@
|
||||
#import "MPSettingsHelper.h"
|
||||
#import "MPNumericalInputFormatter.h"
|
||||
|
||||
#import "KPKXmlFormat.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KPKMetaData.h"
|
||||
#import "KPKNode+IconImage.h"
|
||||
#import "KPKCompositeKey.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "HNHRoundedTextField.h"
|
||||
#import "HNHRoundedSecureTextField.h"
|
||||
#import "HNHCommon.h"
|
||||
|
||||
#import "NSString+Empty.h"
|
||||
|
||||
#import "KPKNode+IconImage.h"
|
||||
|
||||
@interface MPDatabaseSettingsWindowController () {
|
||||
NSString *_missingFeature;
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#import "MPDatePickingViewController.h"
|
||||
|
||||
#import "MPDocument.h"
|
||||
#import "KPKNode.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
typedef NS_ENUM(NSUInteger, MPDatePreset) {
|
||||
MPDatePresetNone,
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
|
||||
#import "MPDocument.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKBinary.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@implementation MPDocument (Attachments)
|
||||
|
||||
|
||||
@@ -23,11 +23,7 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPAutotypeContext.h"
|
||||
|
||||
#import "KPKNode.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKAutotype.h"
|
||||
#import "KPKWindowAssociation.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "MPSettingsHelper.h"
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#import "MPDocument.h"
|
||||
|
||||
#import "KPKTree.h"
|
||||
#import "KPKNode.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
NSString *const MPDocumentDidBeginEditingSelectedItem = @"com.hicknhack.macpass.MPDocumentDidBeginEditingSelectedItem";
|
||||
NSString *const MPDocumentDidCancelChangesToSelectedItem = @"com.hicknhack.macpass.MPDocumentDidCancelChangesToSelectedItem";
|
||||
|
||||
@@ -9,9 +9,7 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPDocumentWindowController.h"
|
||||
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "MPFlagsHelper.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "KPKVersion.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
#import "MPEntrySearchContext.h"
|
||||
#import "MPTargetNodeResolving.h"
|
||||
|
||||
|
||||
@@ -33,17 +33,7 @@
|
||||
#import "MPTreeDelegate.h"
|
||||
#import "MPTargetNodeResolving.h"
|
||||
|
||||
|
||||
#import "DDXMLNode.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KPKTree+Serializing.h"
|
||||
#import "KPKCompositeKey.h"
|
||||
#import "KPKMetaData.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KPKAttribute.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "NSError+Messages.h"
|
||||
#import "NSString+MPPasswordCreation.h"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#import "HNHCommon.h"
|
||||
|
||||
#import "KPKFormat.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
#import "KPKFormat+MPUTIDetection.h"
|
||||
|
||||
@interface MPDocumentController ()
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
#import "MPSettingsHelper.h"
|
||||
#import "MPToolbarDelegate.h"
|
||||
|
||||
#import "KPKCompositeKey.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
typedef NS_ENUM(NSUInteger, MPAlertContext) {
|
||||
MPAlertLossySaveWarning,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#import "MPDocumentWindowDelegate.h"
|
||||
#import "MPDocument.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@implementation MPDocumentWindowDelegate
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
#import "MPEntryContextMenuDelegate.h"
|
||||
#import "MPEntryViewController.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKAttribute.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
static NSUInteger const kMPCustomFieldMenuItem = 1000;
|
||||
static NSUInteger const kMPAttachmentsMenuItem = 2000;
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
#import "MPActionHelper.h"
|
||||
#import "MPSettingsHelper.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKBinary.h"
|
||||
#import "KPKAutotype.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KPKWindowAssociation.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "HNHScrollView.h"
|
||||
#import "HNHRoundedSecureTextField.h"
|
||||
@@ -184,7 +180,11 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
|
||||
[savePanel beginSheetModalForWindow:[[self windowController] window] completionHandler:^(NSInteger result) {
|
||||
if(result == NSFileHandlingPanelOKButton) {
|
||||
[binary saveToLocation:[savePanel URL]];
|
||||
NSError *error;
|
||||
BOOL sucess = [binary saveToLocation:[savePanel URL] error:&error];
|
||||
if(!sucess && error) {
|
||||
[NSApp presentError:error];
|
||||
}
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
#import "MPEntryTableDataSource.h"
|
||||
#import "MPEntryViewController.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "NSUUID+KeePassKit.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPEntryTableDataSource ()
|
||||
|
||||
|
||||
@@ -28,22 +28,13 @@
|
||||
#import "MPValueTransformerHelper.h"
|
||||
#import "MPEntryContextMenuDelegate.h"
|
||||
|
||||
#import "KPKUTIs.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKNode+IconImage.h"
|
||||
#import "KPKAttribute.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KPKMetaData.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "HNHTableHeaderCell.h"
|
||||
#import "HNHGradientView.h"
|
||||
|
||||
#import "MPNotifications.h"
|
||||
|
||||
#import "NSString+Commands.h"
|
||||
|
||||
#define STATUS_BAR_ANIMATION_TIME 0.15
|
||||
#define EXPIRED_ENTRY_REFRESH_SECONDS 60
|
||||
|
||||
|
||||
@@ -11,11 +11,7 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPIconHelper.h"
|
||||
|
||||
#import "KPKNode.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKAutotype.h"
|
||||
#import "KPKWindowAssociation.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
|
||||
NSString *const kMPAutotypeCell = @"AutotypeCell";
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#import "MPPasteBoardController.h"
|
||||
#import "MPValueTransformerHelper.h"
|
||||
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "HNHScrollView.h"
|
||||
#import "HNHRoundedTextField.h"
|
||||
|
||||
@@ -16,19 +16,15 @@
|
||||
#import "MPNotifications.h"
|
||||
#import "MPPopupImageView.h"
|
||||
|
||||
#import "NSDate+Humanized.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KPKMetaData.h"
|
||||
#import "KPKNode.h"
|
||||
#import "KPKNode+IconImage.h"
|
||||
|
||||
#import "HNHGradientView.h"
|
||||
|
||||
|
||||
#import "NSDate+Humanized.h"
|
||||
|
||||
typedef NS_ENUM(NSUInteger, MPContentTab) {
|
||||
MPEntryTab,
|
||||
MPGroupTab,
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
#import "MPActionHelper.h"
|
||||
#import "MPContextMenuHelper.h"
|
||||
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
NSString *const _MPOutlineMenuDefault = @"Default";
|
||||
NSString *const _MPOutlineMenuTrash = @"Trash";
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPConstants.h"
|
||||
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKUTIs.h"
|
||||
|
||||
#import "NSUUID+KeePassKit.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPOutlineDataSource ()
|
||||
|
||||
|
||||
@@ -17,14 +17,8 @@
|
||||
#import "MPOutlineContextMenuDelegate.h"
|
||||
#import "MPOutlineDataSource.h"
|
||||
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
#import "KPKMetaData.h"
|
||||
#import "KPKNode.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
#import "KPKNode+IconImage.h"
|
||||
#import "KPKTimeInfo.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KPKUTIs.h"
|
||||
|
||||
#import "HNHGradientView.h"
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
#import "MPSettingsHelper.h"
|
||||
|
||||
#import "MPFlagsHelper.h"
|
||||
#import "KPKEntry.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
/*
|
||||
|
||||
|
||||
@@ -10,11 +10,8 @@
|
||||
#import "MPDocument.h"
|
||||
|
||||
#import "HNHRoundedSecureTextField.h"
|
||||
#import "NSString+Empty.h"
|
||||
#import "NSData+Keyfile.h"
|
||||
|
||||
#import "KPKTree.h"
|
||||
#import "KPKCompositeKey.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPPasswordEditWindowController ()
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#import "MPPluginManager.h"
|
||||
|
||||
#import "MPDocument.h"
|
||||
#import "KPKTree.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@implementation MPPluginManager
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
//
|
||||
|
||||
#import "MPReferenceBuilderViewController.h"
|
||||
#import "KPKFormat.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPReferenceBuilderViewController ()
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MPViewController.h"
|
||||
#import "KPKVersion.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@class MPDocument;
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPConstants.h"
|
||||
|
||||
#import "KPKUTIs.h"
|
||||
#import "KPKTree.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@interface MPSavePanelAccessoryViewController ()
|
||||
@property (readwrite, assign) KPKVersion selectedVersion;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#import "MPTemporaryFileStorage.h"
|
||||
#import "MPTemporaryFileStorageCenter.h"
|
||||
|
||||
#import "KPKBinary.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "NSError+Messages.h"
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "KPKTree.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@class MPDocument;
|
||||
|
||||
|
||||
@@ -9,9 +9,8 @@
|
||||
#import "MPWindowAssociationsTableViewDelegate.h"
|
||||
|
||||
#import "MPDocument.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKAutotype.h"
|
||||
#import "KPKWindowAssociation.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@implementation MPWindowAssociationsTableViewDelegate
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "NSString+MPPasswordCreation.h"
|
||||
#import "NSData+Random.h"
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "MPSettingsHelper.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user