mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 21:19:32 +00:00
More progress on import plugin support
This commit is contained in:
@@ -329,6 +329,12 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
// else do nothing!
|
||||
}
|
||||
|
||||
- (void)importTree:(KPKTree *)tree {
|
||||
self.tree = tree;
|
||||
self.compositeKey = nil;
|
||||
self.encryptedData = nil;
|
||||
}
|
||||
|
||||
- (void)writeXMLToURL:(NSURL *)url {
|
||||
NSData *xmlData = [self.tree xmlData];
|
||||
NSError *error;
|
||||
@@ -339,9 +345,8 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
|
||||
- (void)readXMLfromURL:(NSURL *)url {
|
||||
NSError *error;
|
||||
self.tree = [[KPKTree alloc] initWithXmlContentsOfURL:url error:&error];
|
||||
self.compositeKey = nil;
|
||||
self.encryptedData = nil;
|
||||
KPKTree *tree = [[KPKTree alloc] initWithXmlContentsOfURL:url error:&error];
|
||||
[self importTree:tree];
|
||||
}
|
||||
|
||||
- (void)mergeWithContentsFromURL:(NSURL *)url key:(KPKCompositeKey *)key {
|
||||
|
||||
Reference in New Issue
Block a user