diff --git a/MacPass/MPDocument.h b/MacPass/MPDocument.h index a544445c..4a8d8255 100644 --- a/MacPass/MPDocument.h +++ b/MacPass/MPDocument.h @@ -96,7 +96,7 @@ FOUNDATION_EXPORT NSString *const MPDocumentGroupKey; @property (nonatomic, copy) MPEntrySearchContext *searchContext; @property (nonatomic, strong, readonly) NSArray *searchResult; -+ (KPKDatabaseFormat)versionForFileType:(NSString *)fileType; ++ (KPKDatabaseFormat)formatForFileType:(NSString *)fileType; + (NSString *)fileTypeForVersion:(KPKDatabaseFormat)format; #pragma mark Lock/Decrypt diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index a89c8658..c95f40e9 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -182,7 +182,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou return nil; // Saving without a password/key is not possible } NSString *fileType = self.fileTypeFromLastRunSavePanel; - KPKDatabaseFormat format = [self.class versionForFileType:fileType]; + KPKDatabaseFormat format = [self.class formatForFileType:fileType]; if(format == KPKDatabaseFormatUnknown) { if(outError != NULL) { NSDictionary *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(@"UNKNOWN_FILE_VERSION", "") }; @@ -409,7 +409,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou #pragma mark Properties - (KPKDatabaseFormat)formatForFileType { - return [self.class versionForFileType:self.fileType]; + return [self.class formatForFileType:self.fileType]; } - (BOOL)encrypted {