mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 08:49:42 +00:00
Adodopted changes in KeePassLib
This commit is contained in:
@@ -80,16 +80,13 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey";
|
||||
}
|
||||
|
||||
- (BOOL)writeToURL:(NSURL *)url ofType:(NSString *)typeName error:(NSError **)outError {
|
||||
@try {
|
||||
[KdbWriterFactory persist:self.tree file:[url path] withPassword:self.passwordHash];
|
||||
}
|
||||
@catch (NSException *exception) {
|
||||
NSLog(@"%@", [exception description]);
|
||||
NSError *error = nil;
|
||||
[KdbWriterFactory persist:self.tree fileURL:url withPassword:self.passwordHash error:&error];
|
||||
if(error) {
|
||||
NSLog(@"%@", [error localizedDescription]);
|
||||
return NO;
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
||||
}
|
||||
|
||||
- (BOOL)readFromURL:(NSURL *)url ofType:(NSString *)typeName error:(NSError **)outError {
|
||||
@@ -109,7 +106,6 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey";
|
||||
self.tree = [KdbReaderFactory load:[[self fileURL] path] withPassword:self.passwordHash];
|
||||
}
|
||||
@catch (NSException *exception) {
|
||||
NSLog(@"%@", [exception description]);
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1103</string>
|
||||
<string>1121</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
7
MacPass/de.lproj/Errors.strings
Normal file
7
MacPass/de.lproj/Errors.strings
Normal file
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
Errors.strings
|
||||
MacPass
|
||||
|
||||
Created by Michael Starke on 25.06.13.
|
||||
Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
*/
|
||||
9
MacPass/en.lproj/Errors.strings
Normal file
9
MacPass/en.lproj/Errors.strings
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Errors.strings
|
||||
MacPass
|
||||
|
||||
Created by Michael Starke on 25.06.13.
|
||||
Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
*/
|
||||
|
||||
"ERROR_TREE_CLASS_NOT_RECOGNIZED" = "Tree class not regonized";
|
||||
Reference in New Issue
Block a user