diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index 283818e9..3a03bc97 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -10,6 +10,8 @@ 4C01C23F1764D2980016D5D0 /* KdbEntry+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C23E1764D2980016D5D0 /* KdbEntry+Undo.m */; }; 4C01C2421764D8980016D5D0 /* MPContextMenuHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C2411764D8980016D5D0 /* MPContextMenuHelper.m */; }; 4C01C245176500C40016D5D0 /* HNHLevelIndicatorCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */; }; + 4C099930176D4C5C00C885CB /* MPTableCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C09992F176D4C5C00C885CB /* MPTableCellView.m */; }; + 4C099933176D4EA600C885CB /* HNHScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C099932176D4EA600C885CB /* HNHScrollView.m */; }; 4C1DDCDD1711ECEB00C98DA3 /* PasswordCreatorWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C1DDCDC1711ECEB00C98DA3 /* PasswordCreatorWindow.xib */; }; 4C22040D1746ED160054C916 /* KdbGroup+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C22040C1746ED160054C916 /* KdbGroup+Undo.m */; }; 4C25D58716CF0FAA00F6806C /* EntryView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C25D58616CF0FAA00F6806C /* EntryView.xib */; }; @@ -145,6 +147,10 @@ 4C01C2411764D8980016D5D0 /* MPContextMenuHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPContextMenuHelper.m; sourceTree = ""; }; 4C01C243176500C40016D5D0 /* HNHLevelIndicatorCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHLevelIndicatorCell.h; sourceTree = ""; }; 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHLevelIndicatorCell.m; sourceTree = ""; }; + 4C09992E176D4C5C00C885CB /* MPTableCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPTableCellView.h; sourceTree = ""; }; + 4C09992F176D4C5C00C885CB /* MPTableCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPTableCellView.m; sourceTree = ""; }; + 4C099931176D4EA600C885CB /* HNHScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHScrollView.h; sourceTree = ""; }; + 4C099932176D4EA600C885CB /* HNHScrollView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHScrollView.m; sourceTree = ""; }; 4C1DDCDC1711ECEB00C98DA3 /* PasswordCreatorWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordCreatorWindow.xib; sourceTree = ""; }; 4C22040B1746ED160054C916 /* KdbGroup+Undo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "KdbGroup+Undo.h"; sourceTree = ""; }; 4C22040C1746ED160054C916 /* KdbGroup+Undo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "KdbGroup+Undo.m"; sourceTree = ""; }; @@ -427,6 +433,8 @@ 4CE39AC316ECE4F7000FE29D /* MPPopupImageView.m */, 4C4A100D176286FD00BBF2CA /* MPTableView.h */, 4C4A100E176286FD00BBF2CA /* MPTableView.m */, + 4C09992E176D4C5C00C885CB /* MPTableCellView.h */, + 4C09992F176D4C5C00C885CB /* MPTableCellView.m */, ); name = Views; sourceTree = ""; @@ -827,6 +835,8 @@ 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */, 4C37A6711769393300AD0A40 /* HNHTableHeaderCell.h */, 4C37A6721769393300AD0A40 /* HNHTableHeaderCell.m */, + 4C099931176D4EA600C885CB /* HNHScrollView.h */, + 4C099932176D4EA600C885CB /* HNHScrollView.m */, ); path = HNHUi; sourceTree = ""; @@ -1082,6 +1092,8 @@ 4C79DF2A176685870083708F /* HNHRoundedTextField.m in Sources */, 4C46E09E17673A0A00DA62E8 /* HNHShadowBox.m in Sources */, 4C37A6731769393300AD0A40 /* HNHTableHeaderCell.m in Sources */, + 4C099930176D4C5C00C885CB /* MPTableCellView.m in Sources */, + 4C099933176D4EA600C885CB /* HNHScrollView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MacPass/Base.lproj/InspectorView.xib b/MacPass/Base.lproj/InspectorView.xib index 031aae93..249851e7 100644 --- a/MacPass/Base.lproj/InspectorView.xib +++ b/MacPass/Base.lproj/InspectorView.xib @@ -114,7 +114,7 @@ 6 System textBackgroundColor - + 3 MQA @@ -337,6 +337,7 @@ {272, 30} + _NS:9 HNHGradientView @@ -440,7 +441,7 @@ 3 2 - + 6 System @@ -2397,6 +2398,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + HNHScrollView @@ -2412,6 +2414,7 @@ com.apple.InterfaceBuilder.CocoaPlugin + MPTableCellView @@ -2499,6 +2502,14 @@ ./Classes/HNHRoundedTextFieldCell.h + + HNHScrollView + NSScrollView + + IBProjectSource + ./Classes/HNHScrollView.h + + HNHSeparator NSView @@ -2587,6 +2598,14 @@ ./Classes/MPPopupImageView.h + + MPTableCellView + NSTableCellView + + IBProjectSource + ./Classes/MPTableCellView.h + + MPViewController NSViewController diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index 4ecac263..712bb741 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -193,6 +193,7 @@ - (void)toggleInspector:(id)sender { NSView *inspectorView = [_inspectorViewController view]; if([inspectorView superview]) { + //[inspectorView animator] [inspectorView removeFromSuperview]; } else { diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 92ed73fc..0e0b4c20 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -504,6 +504,9 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername"; } - (void)_columnDoubleClick:(id)sender { + if(0 == [[self.entryArrayController arrangedObjects] count]) { + return; // No data available + } NSTableColumn *column = [self.entryTable tableColumns][[self.entryTable clickedColumn]]; NSString *identifier = [column identifier]; if([identifier isEqualToString:MPEntryTablePasswordColumnIdentifier]) { diff --git a/MacPass/MPTableCellView.h b/MacPass/MPTableCellView.h new file mode 100644 index 00000000..9b8d2bac --- /dev/null +++ b/MacPass/MPTableCellView.h @@ -0,0 +1,13 @@ +// +// MPTableCellView.h +// MacPass +// +// Created by Michael Starke on 16.06.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import + +@interface MPTableCellView : NSTableCellView + +@end diff --git a/MacPass/MPTableCellView.m b/MacPass/MPTableCellView.m new file mode 100644 index 00000000..d51217f3 --- /dev/null +++ b/MacPass/MPTableCellView.m @@ -0,0 +1,17 @@ +// +// MPTableCellView.m +// MacPass +// +// Created by Michael Starke on 16.06.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import "MPTableCellView.h" + +@implementation MPTableCellView + +- (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle { + [super setBackgroundStyle:NSBackgroundStyleRaised]; +} + +@end diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index 4231eb62..66b17264 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -48,7 +48,7 @@ CFBundleSignature ???? CFBundleVersion - 322 + 339 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright