mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 04:42:29 +00:00
removed unnecessary interfaces, bumped version
This commit is contained in:
@@ -47,8 +47,5 @@ typedef NS_ENUM( NSUInteger, MPCopyContentTypeTag) {
|
|||||||
- (void)copyURL:(id)sender;
|
- (void)copyURL:(id)sender;
|
||||||
- (void)openURL:(id)sender;
|
- (void)openURL:(id)sender;
|
||||||
|
|
||||||
/* Settings migration */
|
|
||||||
+ (NSString *)timeInfoModificationTimeKeyPath;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
|||||||
|
|
||||||
@implementation MPEntryViewController
|
@implementation MPEntryViewController
|
||||||
|
|
||||||
+ (NSString *)timeInfoModificationTimeKeyPath {
|
|
||||||
static NSString *timeInfoModificationTimeKeyPath;
|
|
||||||
if(nil == timeInfoModificationTimeKeyPath) {
|
|
||||||
timeInfoModificationTimeKeyPath = [[NSString alloc] initWithFormat:@"%@.%@", NSStringFromSelector(@selector(timeInfo)), NSStringFromSelector(@selector(modificationDate))];
|
|
||||||
}
|
|
||||||
return timeInfoModificationTimeKeyPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSString *)nibName {
|
- (NSString *)nibName {
|
||||||
return @"EntryView";
|
return @"EntryView";
|
||||||
}
|
}
|
||||||
@@ -159,14 +151,14 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
|||||||
self.entryTable.autosaveName = @"EntryTable";
|
self.entryTable.autosaveName = @"EntryTable";
|
||||||
self.entryTable.autosaveTableColumns = YES;
|
self.entryTable.autosaveTableColumns = YES;
|
||||||
|
|
||||||
|
|
||||||
NSString *parentTitleKeyPath = [[NSString alloc] initWithFormat:@"%@.%@", NSStringFromSelector(@selector(parent)), NSStringFromSelector(@selector(title))];
|
NSString *parentTitleKeyPath = [[NSString alloc] initWithFormat:@"%@.%@", NSStringFromSelector(@selector(parent)), NSStringFromSelector(@selector(title))];
|
||||||
|
NSString *timeInfoModificationTimeKeyPath = [[NSString alloc] initWithFormat:@"%@.%@", NSStringFromSelector(@selector(timeInfo)), NSStringFromSelector(@selector(modificationDate))];
|
||||||
|
|
||||||
titleColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(title))ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
titleColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(title))ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
||||||
userNameColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(username)) ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
userNameColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(username)) ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
||||||
urlColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(url)) ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
urlColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:NSStringFromSelector(@selector(url)) ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
||||||
parentColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:parentTitleKeyPath ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
parentColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:parentTitleKeyPath ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)];
|
||||||
modifiedColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:[MPEntryViewController timeInfoModificationTimeKeyPath] ascending:YES selector:@selector(compare:)];
|
modifiedColumn.sortDescriptorPrototype = [NSSortDescriptor sortDescriptorWithKey:timeInfoModificationTimeKeyPath ascending:YES selector:@selector(compare:)];
|
||||||
|
|
||||||
[parentColumn.headerCell setStringValue:NSLocalizedString(@"GROUP", "")];
|
[parentColumn.headerCell setStringValue:NSLocalizedString(@"GROUP", "")];
|
||||||
[titleColumn.headerCell setStringValue:NSLocalizedString(@"TITLE", "")];
|
[titleColumn.headerCell setStringValue:NSLocalizedString(@"TITLE", "")];
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#import "MPSettingsHelper.h"
|
#import "MPSettingsHelper.h"
|
||||||
#import "NSString+MPPasswordCreation.h"
|
#import "NSString+MPPasswordCreation.h"
|
||||||
#import "NSString+MPHash.h"
|
#import "NSString+MPHash.h"
|
||||||
#import "MPEntryViewController.h" // Sort descriptors
|
#import "MPEntrySearchContext.h"
|
||||||
#import "DDHotKey+MacPassAdditions.h" // Default hotkey;
|
#import "DDHotKey+MacPassAdditions.h" // Default hotkey;
|
||||||
|
|
||||||
NSString *const kMPSettingsKeyPasteboardClearTimeout = @"ClipboardClearTimeout";
|
NSString *const kMPSettingsKeyPasteboardClearTimeout = @"ClipboardClearTimeout";
|
||||||
@@ -172,8 +172,9 @@ NSString *const kMPDeprecatedSettingsKeyShowMenuItem = @"Sh
|
|||||||
NSArray *sortDescriptors = [NSUnarchiver unarchiveObjectWithData:descriptorData];
|
NSArray *sortDescriptors = [NSUnarchiver unarchiveObjectWithData:descriptorData];
|
||||||
|
|
||||||
for(NSSortDescriptor *descriptor in sortDescriptors) {
|
for(NSSortDescriptor *descriptor in sortDescriptors) {
|
||||||
|
/* Brute force, just kill the settings if they might cause trouble */
|
||||||
if(descriptor.selector == @selector(compare:)
|
if(descriptor.selector == @selector(compare:)
|
||||||
|| [descriptor.key isEqualToString:[MPEntryViewController timeInfoModificationTimeKeyPath]]
|
|| [descriptor.key isEqualToString:@"timeInfo.modificationDate"]
|
||||||
|| [descriptor.key isEqualToString:@"parent.name"] ) {
|
|| [descriptor.key isEqualToString:@"parent.name"] ) {
|
||||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kMPSettingsKeyEntryTableSortDescriptors];
|
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kMPSettingsKeyEntryTableSortDescriptors];
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.6</string>
|
<string>0.6.1</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user