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 - - com.apple.InterfaceBuilder.CocoaPlugin - 3084 - - - IBNSLayoutConstraint - NSButton - NSButtonCell - NSCustomObject - NSCustomView - NSImageCell - NSImageView - NSScrollView - NSScroller - NSTableCellView - NSTableColumn - NSTableHeaderView - NSTableView - NSTextField - NSTextFieldCell - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - MPEntryViewController - - - FirstResponder - - - NSApplication - - - - 268 - - - - 268 - - - - 268 - - {{7, 5}, {32, 19}} - - - - _NS:9 - YES - - -2080374784 - 134217728 - Round Rect Button - - LucidaGrande - 12 - 16 - - _NS:9 - - -2033958912 - 164 - - NSImage - NSAddTemplate - - - - 400 - 75 - - NO - - - {694, 30} - - - - _NS:9 - HNHGradientView - - - - 4364 - - - - 2304 - - - - 256 - - {694, 548} - - - - _NS:13 - YES - NO - YES - - - 256 - {694, 17} - - - - - - - - -2147483392 - {{224, 0}, {16, 17}} - - _NS:19 - - - - Group Column - 104.609375 - 40 - 3.4028234663852886e+38 - - 75497536 - 2048 - - - LucidaGrande - 11 - 3100 - - - 6 - System - headerColor - - 3 - MQA - - - - 6 - System - headerTextColor - - 3 - MAA - - - - - 337641536 - 2048 - Text Cell - - LucidaGrande - 13 - 1044 - - - - 6 - System - controlBackgroundColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - controlTextColor - - - - 3 - YES - YES - - - - Title Column - 144.1171875 - 40 - 3.4028234663852886e+38 - - 75497536 - 2048 - - - - - - - 337641536 - 2048 - Text Cell - - - - - - 3 - YES - YES - - - - Password Column - 118.73046875 - 10 - 3.4028234663852886e+38 - - 75497536 - 2048 - - - - - - - 337641536 - 2048 - Text Cell - - - - - - 3 - YES - YES - - - - URL Column - 113.18359375 - 10 - 3.4028234663852886e+38 - - 75497536 - 2048 - - - - - - - 337641536 - 2048 - Text Cell - - - - - - 3 - YES - YES - - - - 198 - 10 - 3.4028234663852886e+38 - - 75497536 - 2048 - - - - - - - 337641536 - 2048 - Text Cell - - - - - - 3 - YES - YES - - - - 3 - 2 - - - 6 - System - gridColor - - 3 - MC41AA - - - 17 - 1472200704 - - - 4 - 15 - 0 - YES - 1 - 1 - - - {{0, 17}, {694, 548}} - - - - _NS:11 - - - 4 - - - - -2147483392 - {{224, 17}, {15, 102}} - - - - _NS:58 - NO - - _doScroller: - 0.99711815561959649 - - - - -2147483392 - {{0, 310}, {480, 16}} - - - - _NS:60 - NO - 1 - - _doScroller: - 0.96579476861167002 - - - - 2304 - - - - {694, 17} - - - - - - 4 - - - {{0, 30}, {694, 565}} - - - - _NS:9 - 133680 - - - - - QSAAAEEgAABBmAAAQZgAAA - 0.25 - 4 - 1 - - - {694, 594} - - - - _NS:9 - NSView - - - - - - - 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 - - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - - - - 5 - 0 - - 5 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - - 6 - 0 - - 6 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - - - - - 270 - - - - - - - - 271 - - - - - 287 - - - - - 286 - - - - - 285 - - - - - 119 - - - - - - - - - 120 - - - - - 297 - - - - - 5 - 0 - - 6 - 1 - - 8 - - 1000 - - 6 - 24 - 3 - - - - 6 - 0 - - 6 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - - - - 4 - 0 - - 4 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 3 - 0 - - 3 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 5 - 0 - - 5 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - - - - - - 298 - - - - - 7 - 0 - - 0 - 1 - - 17 - - 1000 - - 9 - 40 - 1 - - - - - - - 301 - - - - - 312 - - - - - 299 - - - - - - - - 300 - - - - - 330 - - - - - 314 - - - - - 313 - - - - - 232 - - - - - - - - - 233 - - - - - 56 - - - - - 58 - - - - - 419 - - - - - - - - - 420 - - - - - 421 - - - - - - 6 - 0 - - 6 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - - 5 - 0 - - 5 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - - - - - - 422 - - - - - - - - 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];