From d642b3d72f9bf97077e5885b1b8e89f29a05f75e Mon Sep 17 00:00:00 2001 From: michael starke Date: Wed, 3 Jul 2013 15:18:15 +0200 Subject: [PATCH] ExportButton for attachments --- MacPass/Base.lproj/InspectorView.xib | 283 +++++++++++++-------------- MacPass/MPInspectorViewController.m | 4 +- MacPass/MacPass-Info.plist | 2 +- 3 files changed, 139 insertions(+), 150 deletions(-) diff --git a/MacPass/Base.lproj/InspectorView.xib b/MacPass/Base.lproj/InspectorView.xib index 6d78b0a5..cb00c684 100644 --- a/MacPass/Base.lproj/InspectorView.xib +++ b/MacPass/Base.lproj/InspectorView.xib @@ -1295,7 +1295,7 @@ 134217728 33554432 - + NSImage NSActionTemplate @@ -1313,7 +1313,7 @@ 266 {{40, 10}, {208, 17}} - + _NS:20 {250, 750} YES @@ -1451,12 +1451,12 @@ imageView - + 274 - - + + 268 Apple PDF pasteboard type @@ -1467,14 +1467,14 @@ NeXT TIFF v4.0 pasteboard type {{3, 2}, {32, 32}} - - + + _NS:11 YES - + 134217728 33554432 - + _NS:11 0 0 @@ -1484,43 +1484,43 @@ NO YES - - + + 266 - {{40, 10}, {160, 17}} - - + {{40, 10}, {157, 17}} + + _NS:20 {250, 750} YES - + 67108928 272631808 Table View Cell _NS:20 - + NO - - + + 268 - {{205, 9}, {40, 19}} - + {{202, 8}, {43, 19}} + _NS:9 YES - + -2080374784 134217728 Save _NS:9 - - -2033434624 + + -2038153216 164 @@ -1531,29 +1531,21 @@ {{1, 39}, {248, 36}} - + _NS:9 - + 2214 textField - - + + 2215 - - - saveButton - - - - 2224 - @@ -3429,7 +3421,7 @@ - + @@ -4262,133 +4254,133 @@ 2202 - + - - - - + + + + 5 0 - + 6 1 8 1000 - + 6 24 3 - - + + 6 0 - + 6 1 3 1000 - + 8 29 3 - - - 4 + + + 3 0 - - 4 + + 3 1 0.0 1000 - + 6 24 2 - - + + 10 0 - + 10 1 0.0 1000 - + 5 22 2 - - + + 5 0 - + 6 1 8 1000 - + 6 24 3 - - + + 10 0 - + 10 1 0.0 1000 - + 6 24 2 - - + + 5 0 - + 5 1 3 1000 - + 8 29 3 - + 2203 - + - - - + + + 7 0 @@ -4398,13 +4390,13 @@ 32 1000 - + 3 9 1 - - + + 8 0 @@ -4414,110 +4406,110 @@ 32 1000 - + 3 9 1 - + 2204 - + - + - + 2205 - - + + 2207 - - + + 2209 - - + + 2210 - - + + 2211 - - + + 2212 - - + + 2213 - - + + - 2216 - + 2234 + - - - + + + 7 0 0 1 - 40 + 43 1000 - + 3 9 1 - + - 2217 - - + 2235 + + - 2218 - - + 2236 + + - 2219 - - + 2237 + + - 2220 - - + 2238 + + - 2222 - - + 2240 + + - 2223 - - + 2241 + + @@ -4636,7 +4628,7 @@ - + com.apple.InterfaceBuilder.CocoaPlugin @@ -4860,19 +4852,19 @@ com.apple.InterfaceBuilder.CocoaPlugin MPSelectedAttachmentTableCellView - - - - - - - + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin SelectedCell - - + + com.apple.InterfaceBuilder.CocoaPlugin @@ -4885,17 +4877,17 @@ 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 @@ -4942,7 +4934,7 @@ - 2224 + 2241 @@ -5025,15 +5017,10 @@ MPInspectorViewController MPViewController - id id id - - _popUpPasswordGenerator: - id - addCustomField: id diff --git a/MacPass/MPInspectorViewController.m b/MacPass/MPInspectorViewController.m index 003beb43..3f524c6f 100644 --- a/MacPass/MPInspectorViewController.m +++ b/MacPass/MPInspectorViewController.m @@ -350,7 +350,9 @@ enum { - (void)tableViewSelectionDidChange:(NSNotification *)notification { if([notification object] == self.attachmentTableView) { NSIndexSet *allColumns = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [[self.attachmentTableView tableColumns] count])]; - [self.attachmentTableView reloadDataForRowIndexes:[self.attachmentTableView selectedRowIndexes] columnIndexes:allColumns]; + Kdb4Entry *entryv4 = (Kdb4Entry *)self.selectedEntry; + NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [entryv4.binaries count] )]; + [self.attachmentTableView reloadDataForRowIndexes:indexSet columnIndexes:allColumns]; } } diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index bb2f1961..0d747685 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -48,7 +48,7 @@ CFBundleSignature ???? CFBundleVersion - 1831 + 1842 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright