diff --git a/KeePassKit b/KeePassKit
index a232bbd6..76975731 160000
--- a/KeePassKit
+++ b/KeePassKit
@@ -1 +1 @@
-Subproject commit a232bbd6017d0e7d5c6f1034c1001d4bc64bcc9e
+Subproject commit 76975731c37c9108d9e707b9bc170505c65882c4
diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib
index e8763ff9..cc7a57bc 100644
--- a/MacPass/EntryView.xib
+++ b/MacPass/EntryView.xib
@@ -1,1867 +1,295 @@
-
-
-
- 1080
- 12E55
- 3084
- 1187.39
- 626.00
-
-
- IBNSLayoutConstraint
- NSButton
- NSButtonCell
- NSCustomObject
- NSCustomView
- NSImageCell
- NSImageView
- NSScrollView
- NSScroller
- NSTableCellView
- NSTableColumn
- NSTableHeaderView
- NSTableView
- NSTextField
- NSTextFieldCell
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
-
-
-
-
-
-
-
- entryTable
-
-
-
- 111
-
-
-
- view
-
-
-
- 395
-
-
-
- bottomBar
-
-
-
- 744
-
-
-
- addEntryButton
-
-
-
- 745
-
-
-
- tableToTopConstraint
-
-
-
- 3
- 0
-
- 3
- 1
-
- -1
-
- 1000
-
- 9
- 40
- 3
-
-
- 844
-
-
-
- textField
-
-
- 274
-
-
-
- 266
- {105, 17}
-
-
- {250, 750}
- YES
-
- 67108928
- 272631808
- Table View Cell
-
-
-
- 6
- System
- controlColor
-
-
-
-
- NO
-
-
- {{1, 1}, {105, 17}}
-
-
-
-
- 272
-
-
-
- imageView
-
-
- 274
-
-
-
- 268
-
-
- Apple PDF pasteboard type
- Apple PICT pasteboard type
- Apple PNG pasteboard type
- NSFilenamesPboardType
- NeXT Encapsulated PostScript v1.2 pasteboard type
- NeXT TIFF v4.0 pasteboard type
-
- {{3, 0}, {17, 17}}
-
-
- _NS:11
- YES
-
- 134217728
- 33554432
-
- NSImage
- NSActionTemplate
-
- _NS:11
- 0
- 0
- 0
- NO
-
- NO
- YES
-
-
-
- 266
- {{25, 0}, {119, 17}}
-
-
- _NS:20
- {250, 750}
- YES
-
- 67108928
- 272631808
- Table View Cell
-
- _NS:20
-
-
-
-
- NO
-
-
- {{109, 1}, {144, 17}}
-
- _NS:9
-
-
-
- 302
-
-
-
- textField
-
-
-
- 303
-
-
-
- textField
-
-
- 274
-
-
-
- 266
- {113, 17}
-
-
- {250, 750}
- YES
-
- 67108928
- 272631808
- Table View Cell
-
-
-
-
-
- NO
-
-
- {{378, 1}, {113, 17}}
-
-
-
-
- 424
-
-
-
- textField
-
-
- 274
-
-
-
- 266
- {119, 17}
-
-
- {250, 750}
- YES
-
- 67108928
- 272631808
- Table View Cell
-
-
-
-
-
- NO
-
-
- {{256, 1}, {119, 17}}
-
-
-
-
- 431
-
-
-
- textField
-
-
- 274
-
-
-
- 266
- {198, 17}
-
-
- {250, 750}
- YES
-
- 67108928
- 272631808
- Table View Cell
-
-
-
-
-
- NO
-
-
- {{494, 1}, {198, 17}}
-
-
-
-
- 619
-
-
-
-
-
- 0
-
-
-
-
-
- -2
-
-
- File's Owner
-
-
- -1
-
-
- First Responder
-
-
- -3
-
-
- Application
-
-
- 336
-
-
-
-
- 4
- 0
-
- 4
- 1
-
- 0.0
-
- 1000
-
- 9
- 40
- 3
-
-
-
- 3
- 0
-
- 4
- 1
-
- 0.0
-
- 1000
-
- 9
- 40
- 3
-
-
-
- 6
- 0
-
- 6
- 1
-
- 0.0
-
- 1000
-
- 8
- 29
- 3
-
-
-
- 5
- 0
-
- 5
- 1
-
- 0.0
-
- 1000
-
- 8
- 29
- 3
-
-
-
-
- 6
- 0
-
- 6
- 1
-
- 0.0
-
- 1000
-
- 8
- 29
- 3
-
-
-
- 5
- 0
-
- 5
- 1
-
- 0.0
-
- 1000
-
- 8
- 29
- 3
-
-
-
-
-
-
-
- 54
-
-
-
-
-
-
-
-
-
-
- 348
-
-
-
-
- 346
-
-
-
-
- 55
-
-
-
-
-
-
-
-
-
-
-
- 117
-
-
-
-
-
-
-
-
- 118
-
-
-
-
- 269
-
-
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
-
-
-
-
- 423
-
-
-
-
- 425
-
-
-
-
- 426
-
-
-
-
- 427
-
-
-
-
- 428
-
-
-
-
-
- 6
- 0
-
- 6
- 1
-
- 3
-
- 1000
-
- 8
- 29
- 3
-
-
-
- 10
- 0
-
- 10
- 1
-
- 0.0
-
- 1000
-
- 5
- 22
- 2
-
-
-
- 5
- 0
-
- 5
- 1
-
- 3
-
- 1000
-
- 8
- 29
- 3
-
-
-
-
-
- 429
-
-
-
-
-
-
-
- 430
-
-
-
-
- 432
-
-
-
-
- 433
-
-
-
-
- 434
-
-
-
-
- 614
-
-
-
-
-
-
-
-
- 615
-
-
-
-
- 616
-
-
-
-
-
- 5
- 0
-
- 5
- 1
-
- 3
-
- 1000
-
- 8
- 29
- 3
-
-
-
- 10
- 0
-
- 10
- 1
-
- 0.0
-
- 1000
-
- 5
- 22
- 2
-
-
-
- 6
- 0
-
- 6
- 1
-
- 3
-
- 1000
-
- 8
- 29
- 3
-
-
-
-
-
- 617
-
-
-
-
-
-
-
- 618
-
-
-
-
- 620
-
-
-
-
- 622
-
-
-
-
- 676
-
-
-
-
- 677
-
-
-
-
- 678
-
-
-
-
- 679
-
-
-
-
- 621
-
-
-
-
- 683
-
-
-
-
- 690
-
-
-
-
- 10
- 0
-
- 10
- 1
-
- 0.0
-
- 1000
-
- 5
- 22
- 2
-
-
-
- 5
- 0
-
- 5
- 1
-
- 7
-
- 1000
-
- 9
- 40
- 3
-
-
-
- 8
- 0
-
- 0
- 1
-
- 30
-
- 1000
-
- 9
- 40
- 1
-
-
-
-
-
-
- 694
-
-
-
-
- 695
-
-
-
-
- 697
-
-
-
-
- 705
-
-
-
-
- 708
-
-
-
-
- 732
-
-
-
-
-
- 7
- 0
-
- 0
- 1
-
- 32
-
- 1000
-
- 3
- 9
- 1
-
-
-
-
-
- 733
-
-
-
-
- 741
-
-
-
-
- 743
-
-
-
-
- 878
-
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- StringCell
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- ImageCell
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
-
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- PasswordCell
- NSSecureTextField
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
- com.apple.InterfaceBuilder.CocoaPlugin
- MPTableView
- com.apple.InterfaceBuilder.CocoaPlugin
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
-
-
-
-
-
- 878
-
-
-
-
- HNHGradientView
- NSView
-
- IBProjectSource
- ./Classes/HNHGradientView.h
-
-
-
- MPEntryViewController
- MPViewController
-
- NSButton
- HNHGradientView
- NSTextField
- NSTableView
- NSView
- NSButton
- NSTextField
- NSSearchField
- NSButton
- NSButton
- NSButton
- NSLayoutConstraint
- HNHGradientView
-
-
-
- addEntryButton
- NSButton
-
-
- bottomBar
- HNHGradientView
-
-
- entryCountTextField
- NSTextField
-
-
- entryTable
- NSTableView
-
-
- filterBar
- NSView
-
-
- filterDoneButton
- NSButton
-
-
- filterLabelTextField
- NSTextField
-
-
- filterSearchField
- NSSearchField
-
-
- filterTitleButton
- NSButton
-
-
- filterURLButton
- NSButton
-
-
- filterUsernameButton
- NSButton
-
-
- tableToTopConstraint
- NSLayoutConstraint
-
-
- trashBar
- HNHGradientView
-
-
-
- IBProjectSource
- ./Classes/MPEntryViewController.h
-
-
-
- MPTableView
- NSTableView
-
- IBProjectSource
- ./Classes/MPTableView.h
-
-
-
- MPViewController
- NSViewController
-
- IBProjectSource
- ./Classes/MPViewController.h
-
-
-
- NSLayoutConstraint
- NSObject
-
- IBProjectSource
- ./Classes/NSLayoutConstraint.h
-
-
-
-
- 0
- IBCocoaFramework
- YES
- 3
-
- {15, 15}
- {8, 8}
-
- YES
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m
index f2133cf8..fecb1105 100644
--- a/MacPass/MPEntryViewController.m
+++ b/MacPass/MPEntryViewController.m
@@ -149,6 +149,9 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
NSTableColumn *attachmentsColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableAttachmentColumnIdentifier];
NSTableColumn *notesColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableNotesColumnIdentifier];
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:attachmentsColumn];
[self.entryTable addTableColumn:modifiedColumn];
@@ -232,7 +235,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
[[view imageView] setImage:entry.iconImage];
}
}
- else if( isPasswordColum ) {
+ else if(isPasswordColum) {
view = [tableView makeViewWithIdentifier:_MPTAbleSecurCellView owner:self];
NSDictionary *options = @{ NSValueTransformerBindingOption : [NSValueTransformer valueTransformerForName:MPStringLengthValueTransformerName] };
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"password" options:options];
@@ -242,18 +245,17 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
if(isURLColumn) {
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"url" options:nil];
}
- else if( isUsernameColumn) {
+ else if(isUsernameColumn) {
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"username" options:nil];
}
- else if( isNotesColumn ) {
+ else if(isNotesColumn) {
NSDictionary *options = @{ NSValueTransformerNameBindingOption : MPStripLineBreaksTransformerName };
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"notes" options:options];
}
- else if( isAttachmentColumn ) {
- [[view textField] setStringValue:@""];
- //[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"countOfBinaries" options:nil];
+ else if(isAttachmentColumn) {
+ [[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"binaries.@count" options:nil];
}
- else if( isModifedColumn ) {
+ else if(isModifedColumn) {
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateStyle:NSDateFormatterMediumStyle];
[formatter setTimeStyle:NSDateFormatterMediumStyle];