mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 12:22:26 +00:00
Fixed #64 Attachment count is now displayable as a column in the entry view
This commit is contained in:
Submodule KeePassKit updated: a232bbd601...76975731c3
File diff suppressed because it is too large
Load Diff
@@ -149,6 +149,9 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
|||||||
NSTableColumn *attachmentsColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableAttachmentColumnIdentifier];
|
NSTableColumn *attachmentsColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableAttachmentColumnIdentifier];
|
||||||
NSTableColumn *notesColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableNotesColumnIdentifier];
|
NSTableColumn *notesColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableNotesColumnIdentifier];
|
||||||
NSTableColumn *modifiedColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableModfiedColumnIdentifier];
|
NSTableColumn *modifiedColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableModfiedColumnIdentifier];
|
||||||
|
[notesColumn setMinWidth:40.0];
|
||||||
|
[attachmentsColumn setMinWidth:40.0];
|
||||||
|
[modifiedColumn setMinWidth:40.0];
|
||||||
[self.entryTable addTableColumn:notesColumn];
|
[self.entryTable addTableColumn:notesColumn];
|
||||||
[self.entryTable addTableColumn:attachmentsColumn];
|
[self.entryTable addTableColumn:attachmentsColumn];
|
||||||
[self.entryTable addTableColumn:modifiedColumn];
|
[self.entryTable addTableColumn:modifiedColumn];
|
||||||
@@ -250,8 +253,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
|||||||
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"notes" options:options];
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"notes" options:options];
|
||||||
}
|
}
|
||||||
else if(isAttachmentColumn) {
|
else if(isAttachmentColumn) {
|
||||||
[[view textField] setStringValue:@""];
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"binaries.@count" options:nil];
|
||||||
//[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"countOfBinaries" options:nil];
|
|
||||||
}
|
}
|
||||||
else if(isModifedColumn) {
|
else if(isModifedColumn) {
|
||||||
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
|
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
|
||||||
|
|||||||
Reference in New Issue
Block a user