mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
Used bindings in Inspector and Tabelview
Added undoable actions for KdbGroup
This commit is contained in:
@@ -74,8 +74,8 @@
|
|||||||
4C669BA216760ED100DD0774 /* UUID.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C669B7B16760ED100DD0774 /* UUID.m */; };
|
4C669BA216760ED100DD0774 /* UUID.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C669B7B16760ED100DD0774 /* UUID.m */; };
|
||||||
4C69A73A16D589DF00EC1B1A /* MPGradientView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C69A73916D589DF00EC1B1A /* MPGradientView.m */; };
|
4C69A73A16D589DF00EC1B1A /* MPGradientView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C69A73916D589DF00EC1B1A /* MPGradientView.m */; };
|
||||||
4C6B0E8C16C9B99B00A9ED23 /* PasswordInputView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C6B0E8B16C9B99B00A9ED23 /* PasswordInputView.xib */; };
|
4C6B0E8C16C9B99B00A9ED23 /* PasswordInputView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C6B0E8B16C9B99B00A9ED23 /* PasswordInputView.xib */; };
|
||||||
4C77547516E55FE800970E02 /* MPInspectorTabViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C77547416E55FE800970E02 /* MPInspectorTabViewController.m */; };
|
4C77547516E55FE800970E02 /* MPInspectorViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C77547416E55FE800970E02 /* MPInspectorViewController.m */; };
|
||||||
4C77547716E55FFC00970E02 /* InspectorTabView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C77547616E55FFC00970E02 /* InspectorTabView.xib */; };
|
4C77547716E55FFC00970E02 /* InspectorView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C77547616E55FFC00970E02 /* InspectorView.xib */; };
|
||||||
4C77E36715B84A240093A587 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C77E36615B84A240093A587 /* Cocoa.framework */; };
|
4C77E36715B84A240093A587 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C77E36615B84A240093A587 /* Cocoa.framework */; };
|
||||||
4C77E37115B84A240093A587 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4C77E36F15B84A240093A587 /* InfoPlist.strings */; };
|
4C77E37115B84A240093A587 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4C77E36F15B84A240093A587 /* InfoPlist.strings */; };
|
||||||
4C77E37315B84A240093A587 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C77E37215B84A240093A587 /* main.m */; };
|
4C77E37315B84A240093A587 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C77E37215B84A240093A587 /* main.m */; };
|
||||||
@@ -246,9 +246,9 @@
|
|||||||
4C69A73816D589DF00EC1B1A /* MPGradientView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPGradientView.h; sourceTree = "<group>"; };
|
4C69A73816D589DF00EC1B1A /* MPGradientView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPGradientView.h; sourceTree = "<group>"; };
|
||||||
4C69A73916D589DF00EC1B1A /* MPGradientView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPGradientView.m; sourceTree = "<group>"; };
|
4C69A73916D589DF00EC1B1A /* MPGradientView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPGradientView.m; sourceTree = "<group>"; };
|
||||||
4C6B0E8B16C9B99B00A9ED23 /* PasswordInputView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordInputView.xib; sourceTree = "<group>"; };
|
4C6B0E8B16C9B99B00A9ED23 /* PasswordInputView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordInputView.xib; sourceTree = "<group>"; };
|
||||||
4C77547316E55FE800970E02 /* MPInspectorTabViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPInspectorTabViewController.h; sourceTree = "<group>"; };
|
4C77547316E55FE800970E02 /* MPInspectorViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPInspectorViewController.h; sourceTree = "<group>"; };
|
||||||
4C77547416E55FE800970E02 /* MPInspectorTabViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPInspectorTabViewController.m; sourceTree = "<group>"; };
|
4C77547416E55FE800970E02 /* MPInspectorViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPInspectorViewController.m; sourceTree = "<group>"; };
|
||||||
4C77547616E55FFC00970E02 /* InspectorTabView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InspectorTabView.xib; sourceTree = "<group>"; };
|
4C77547616E55FFC00970E02 /* InspectorView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InspectorView.xib; sourceTree = "<group>"; };
|
||||||
4C77E36215B84A240093A587 /* MacPass.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MacPass.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
4C77E36215B84A240093A587 /* MacPass.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MacPass.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
4C77E36615B84A240093A587 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
4C77E36615B84A240093A587 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
||||||
4C77E36915B84A240093A587 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
|
4C77E36915B84A240093A587 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
|
||||||
@@ -358,7 +358,7 @@
|
|||||||
4C5A11FD1708DE8700223D8A /* PasswordCreatorView.xib */,
|
4C5A11FD1708DE8700223D8A /* PasswordCreatorView.xib */,
|
||||||
4C25D58416CF0F8800F6806C /* WelcomeView.xib */,
|
4C25D58416CF0F8800F6806C /* WelcomeView.xib */,
|
||||||
4C3FFD9D16DAF60600DF9186 /* FilterBar.xib */,
|
4C3FFD9D16DAF60600DF9186 /* FilterBar.xib */,
|
||||||
4C77547616E55FFC00970E02 /* InspectorTabView.xib */,
|
4C77547616E55FFC00970E02 /* InspectorView.xib */,
|
||||||
4CE39AC016ECE359000FE29D /* IconSelection.xib */,
|
4CE39AC016ECE359000FE29D /* IconSelection.xib */,
|
||||||
4C69A73816D589DF00EC1B1A /* MPGradientView.h */,
|
4C69A73816D589DF00EC1B1A /* MPGradientView.h */,
|
||||||
4C69A73916D589DF00EC1B1A /* MPGradientView.m */,
|
4C69A73916D589DF00EC1B1A /* MPGradientView.m */,
|
||||||
@@ -658,8 +658,8 @@
|
|||||||
4CDF01A216D1B76700D0AC08 /* MPEntryViewController.m */,
|
4CDF01A216D1B76700D0AC08 /* MPEntryViewController.m */,
|
||||||
4C61EA0116D2FD0800AC519E /* MPOutlineViewController.h */,
|
4C61EA0116D2FD0800AC519E /* MPOutlineViewController.h */,
|
||||||
4C61EA0216D2FD0800AC519E /* MPOutlineViewController.m */,
|
4C61EA0216D2FD0800AC519E /* MPOutlineViewController.m */,
|
||||||
4C77547316E55FE800970E02 /* MPInspectorTabViewController.h */,
|
4C77547316E55FE800970E02 /* MPInspectorViewController.h */,
|
||||||
4C77547416E55FE800970E02 /* MPInspectorTabViewController.m */,
|
4C77547416E55FE800970E02 /* MPInspectorViewController.m */,
|
||||||
4CE39ABD16ECE34A000FE29D /* MPIconSelectViewController.h */,
|
4CE39ABD16ECE34A000FE29D /* MPIconSelectViewController.h */,
|
||||||
4CE39ABE16ECE34A000FE29D /* MPIconSelectViewController.m */,
|
4CE39ABE16ECE34A000FE29D /* MPIconSelectViewController.m */,
|
||||||
4C40AC581707819A0073D1C3 /* MPAbstractSettingsViewController.h */,
|
4C40AC581707819A0073D1C3 /* MPAbstractSettingsViewController.h */,
|
||||||
@@ -852,7 +852,7 @@
|
|||||||
4CB9339916D3A0DD00A13B5D /* Credits.rtf in Resources */,
|
4CB9339916D3A0DD00A13B5D /* Credits.rtf in Resources */,
|
||||||
4C3FFD9E16DAF60600DF9186 /* FilterBar.xib in Resources */,
|
4C3FFD9E16DAF60600DF9186 /* FilterBar.xib in Resources */,
|
||||||
4C431BCF16E2BAB000700A81 /* OverlayWindow.xib in Resources */,
|
4C431BCF16E2BAB000700A81 /* OverlayWindow.xib in Resources */,
|
||||||
4C77547716E55FFC00970E02 /* InspectorTabView.xib in Resources */,
|
4C77547716E55FFC00970E02 /* InspectorView.xib in Resources */,
|
||||||
4C888C9016EB6C91003D34A1 /* Localizable.strings in Resources */,
|
4C888C9016EB6C91003D34A1 /* Localizable.strings in Resources */,
|
||||||
4CE39AC116ECE359000FE29D /* IconSelection.xib in Resources */,
|
4CE39AC116ECE359000FE29D /* IconSelection.xib in Resources */,
|
||||||
4C5A11FF1708DE8800223D8A /* PasswordCreatorView.xib in Resources */,
|
4C5A11FF1708DE8800223D8A /* PasswordCreatorView.xib in Resources */,
|
||||||
@@ -946,7 +946,7 @@
|
|||||||
4C431BCD16E2A82800700A81 /* MPPasteBoardController.m in Sources */,
|
4C431BCD16E2A82800700A81 /* MPPasteBoardController.m in Sources */,
|
||||||
4CE8246F16E2E93400573141 /* MPOverlayWindowController.m in Sources */,
|
4CE8246F16E2E93400573141 /* MPOverlayWindowController.m in Sources */,
|
||||||
4CE8247516E2F2B900573141 /* MPOverlayView.m in Sources */,
|
4CE8247516E2F2B900573141 /* MPOverlayView.m in Sources */,
|
||||||
4C77547516E55FE800970E02 /* MPInspectorTabViewController.m in Sources */,
|
4C77547516E55FE800970E02 /* MPInspectorViewController.m in Sources */,
|
||||||
4CFC53BF16E94729007396BE /* MPShadowBox.m in Sources */,
|
4CFC53BF16E94729007396BE /* MPShadowBox.m in Sources */,
|
||||||
4C888C9316EB6F5E003D34A1 /* MPToolbarItem.m in Sources */,
|
4C888C9316EB6F5E003D34A1 /* MPToolbarItem.m in Sources */,
|
||||||
4C888C9716EB754B003D34A1 /* MPActionHelper.m in Sources */,
|
4C888C9716EB754B003D34A1 /* MPActionHelper.m in Sources */,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||||
<object class="NSCustomObject" id="1001">
|
<object class="NSCustomObject" id="1001">
|
||||||
<string key="NSClassName">MPInspectorTabViewController</string>
|
<string key="NSClassName">MPInspectorViewController</string>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSCustomObject" id="1003">
|
<object class="NSCustomObject" id="1003">
|
||||||
<string key="NSClassName">FirstResponder</string>
|
<string key="NSClassName">FirstResponder</string>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<string key="NSClassName">NSApplication</string>
|
<string key="NSClassName">NSApplication</string>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSView" id="87082330">
|
<object class="NSView" id="87082330">
|
||||||
<reference key="NSNextResponder"/>
|
<nil key="NSNextResponder"/>
|
||||||
<int key="NSvFlags">256</int>
|
<int key="NSvFlags">256</int>
|
||||||
<array class="NSMutableArray" key="NSSubviews">
|
<array class="NSMutableArray" key="NSSubviews">
|
||||||
<object class="NSTextField" id="524369596">
|
<object class="NSTextField" id="524369596">
|
||||||
@@ -50,7 +50,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{40, 416}, {41, 17}}</string>
|
<string key="NSFrame">{{40, 416}, {41, 17}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="290763686"/>
|
<reference key="NSNextKeyView" ref="290763686"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -91,7 +90,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{86, 416}, {120, 22}}</string>
|
<string key="NSFrame">{{86, 416}, {120, 22}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="582897606"/>
|
<reference key="NSNextKeyView" ref="582897606"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -126,7 +124,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{14, 386}, {67, 17}}</string>
|
<string key="NSFrame">{{14, 386}, {67, 17}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="38182485"/>
|
<reference key="NSNextKeyView" ref="38182485"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -147,7 +144,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{86, 291}, {80, 22}}</string>
|
<string key="NSFrame">{{86, 291}, {80, 22}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="782711985"/>
|
<reference key="NSNextKeyView" ref="782711985"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -172,7 +168,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{86, 384}, {120, 22}}</string>
|
<string key="NSFrame">{{86, 384}, {120, 22}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="738135925"/>
|
<reference key="NSNextKeyView" ref="738135925"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -194,7 +189,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{86, 352}, {80, 22}}</string>
|
<string key="NSFrame">{{86, 352}, {80, 22}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="1040222427"/>
|
<reference key="NSNextKeyView" ref="1040222427"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -216,7 +210,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{52, 354}, {29, 17}}</string>
|
<string key="NSFrame">{{52, 354}, {29, 17}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="681190446"/>
|
<reference key="NSNextKeyView" ref="681190446"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -237,7 +230,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{174, 352}, {32, 25}}</string>
|
<string key="NSFrame">{{174, 352}, {32, 25}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="333573736"/>
|
<reference key="NSNextKeyView" ref="333573736"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:22</string>
|
<string key="NSReuseIdentifierKey">_NS:22</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -266,7 +258,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{17, 293}, {64, 17}}</string>
|
<string key="NSFrame">{{17, 293}, {64, 17}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="568887030"/>
|
<reference key="NSNextKeyView" ref="568887030"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -287,7 +278,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{174, 289}, {32, 25}}</string>
|
<string key="NSFrame">{{174, 289}, {32, 25}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<string key="NSReuseIdentifierKey">_NS:22</string>
|
<string key="NSReuseIdentifierKey">_NS:22</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
<object class="NSButtonCell" key="NSCell" id="353877023">
|
<object class="NSButtonCell" key="NSCell" id="353877023">
|
||||||
@@ -323,7 +313,6 @@
|
|||||||
</set>
|
</set>
|
||||||
<string key="NSFrame">{{20, 467}, {48, 48}}</string>
|
<string key="NSFrame">{{20, 467}, {48, 48}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="787130496"/>
|
<reference key="NSNextKeyView" ref="787130496"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||||
<bool key="NSEnabled">YES</bool>
|
<bool key="NSEnabled">YES</bool>
|
||||||
@@ -348,7 +337,6 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{73, 483}, {136, 17}}</string>
|
<string key="NSFrame">{{73, 483}, {136, 17}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="152677463"/>
|
<reference key="NSNextKeyView" ref="152677463"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
<string key="NSReuseIdentifierKey">_NS:1535</string>
|
||||||
<string key="NSAntiCompressionPriority">{200, 750}</string>
|
<string key="NSAntiCompressionPriority">{200, 750}</string>
|
||||||
@@ -370,15 +358,12 @@
|
|||||||
<int key="NSvFlags">268</int>
|
<int key="NSvFlags">268</int>
|
||||||
<string key="NSFrame">{{20, 457}, {186, 2}}</string>
|
<string key="NSFrame">{{20, 457}, {186, 2}}</string>
|
||||||
<reference key="NSSuperview" ref="87082330"/>
|
<reference key="NSSuperview" ref="87082330"/>
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="524369596"/>
|
<reference key="NSNextKeyView" ref="524369596"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||||
<string key="NSClassName">MPSeparator</string>
|
<string key="NSClassName">MPSeparator</string>
|
||||||
</object>
|
</object>
|
||||||
</array>
|
</array>
|
||||||
<string key="NSFrameSize">{226, 535}</string>
|
<string key="NSFrameSize">{226, 535}</string>
|
||||||
<reference key="NSSuperview"/>
|
|
||||||
<reference key="NSWindow"/>
|
|
||||||
<reference key="NSNextKeyView" ref="1013751338"/>
|
<reference key="NSNextKeyView" ref="1013751338"/>
|
||||||
<string key="NSReuseIdentifierKey">_NS:11</string>
|
<string key="NSReuseIdentifierKey">_NS:11</string>
|
||||||
</object>
|
</object>
|
||||||
@@ -1614,74 +1599,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">MPInspectorTabViewController</string>
|
|
||||||
<string key="superclassName">MPViewController</string>
|
|
||||||
<object class="NSMutableDictionary" key="actions">
|
|
||||||
<string key="NS.key.0">togglePasswordDisplay:</string>
|
|
||||||
<string key="NS.object.0">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
|
||||||
<string key="NS.key.0">togglePasswordDisplay:</string>
|
|
||||||
<object class="IBActionInfo" key="NS.object.0">
|
|
||||||
<string key="name">togglePasswordDisplay:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<dictionary class="NSMutableDictionary" key="outlets">
|
|
||||||
<string key="URLTextField">NSTextField</string>
|
|
||||||
<string key="itemImageView">MPPopupImageView</string>
|
|
||||||
<string key="itemNameTextfield">NSTextField</string>
|
|
||||||
<string key="openURLButton">NSButton</string>
|
|
||||||
<string key="passwordTextField">NSSecureTextField</string>
|
|
||||||
<string key="showPasswordCreator">NSButton</string>
|
|
||||||
<string key="titleOrNameLabel">NSTextField</string>
|
|
||||||
<string key="titleTextField">NSTextField</string>
|
|
||||||
<string key="usernameTextField">NSTextField</string>
|
|
||||||
</dictionary>
|
|
||||||
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
|
|
||||||
<object class="IBToOneOutletInfo" key="URLTextField">
|
|
||||||
<string key="name">URLTextField</string>
|
|
||||||
<string key="candidateClassName">NSTextField</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="itemImageView">
|
|
||||||
<string key="name">itemImageView</string>
|
|
||||||
<string key="candidateClassName">MPPopupImageView</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="itemNameTextfield">
|
|
||||||
<string key="name">itemNameTextfield</string>
|
|
||||||
<string key="candidateClassName">NSTextField</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="openURLButton">
|
|
||||||
<string key="name">openURLButton</string>
|
|
||||||
<string key="candidateClassName">NSButton</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="passwordTextField">
|
|
||||||
<string key="name">passwordTextField</string>
|
|
||||||
<string key="candidateClassName">NSSecureTextField</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="showPasswordCreator">
|
|
||||||
<string key="name">showPasswordCreator</string>
|
|
||||||
<string key="candidateClassName">NSButton</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="titleOrNameLabel">
|
|
||||||
<string key="name">titleOrNameLabel</string>
|
|
||||||
<string key="candidateClassName">NSTextField</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="titleTextField">
|
|
||||||
<string key="name">titleTextField</string>
|
|
||||||
<string key="candidateClassName">NSTextField</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBToOneOutletInfo" key="usernameTextField">
|
|
||||||
<string key="name">usernameTextField</string>
|
|
||||||
<string key="candidateClassName">NSTextField</string>
|
|
||||||
</object>
|
|
||||||
</dictionary>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/MPInspectorTabViewController.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">MPPopupImageView</string>
|
<string key="className">MPPopupImageView</string>
|
||||||
<string key="superclassName">NSImageView</string>
|
<string key="superclassName">NSImageView</string>
|
||||||
@@ -1698,14 +1615,6 @@
|
|||||||
<string key="minorKey">./Classes/MPSeparator.h</string>
|
<string key="minorKey">./Classes/MPSeparator.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">MPViewController</string>
|
|
||||||
<string key="superclassName">NSViewController</string>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/MPViewController.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">NSLayoutConstraint</string>
|
<string key="className">NSLayoutConstraint</string>
|
||||||
<string key="superclassName">NSObject</string>
|
<string key="superclassName">NSObject</string>
|
||||||
@@ -8,6 +8,13 @@
|
|||||||
|
|
||||||
#import "Kdb.h"
|
#import "Kdb.h"
|
||||||
|
|
||||||
|
APPKIT_EXTERN NSString *const MPEntryTitleUndoableKey;
|
||||||
|
APPKIT_EXTERN NSString *const MPEntryUsernameUndoableKey;
|
||||||
|
APPKIT_EXTERN NSString *const MPEntryPasswordUndoableKey;
|
||||||
|
APPKIT_EXTERN NSString *const MPEntryUrlUndoableKey;
|
||||||
|
APPKIT_EXTERN NSString *const MPEntryNotesUndoableKey;
|
||||||
|
|
||||||
|
|
||||||
@interface KdbEntry (Undo)
|
@interface KdbEntry (Undo)
|
||||||
|
|
||||||
+ (NSUndoManager *)undoManager;
|
+ (NSUndoManager *)undoManager;
|
||||||
|
|||||||
@@ -9,6 +9,12 @@
|
|||||||
#import "KdbEntry+Undo.h"
|
#import "KdbEntry+Undo.h"
|
||||||
#import "KdbGroup+MPAdditions.h"
|
#import "KdbGroup+MPAdditions.h"
|
||||||
|
|
||||||
|
NSString *const MPEntryTitleUndoableKey = @"titleUndoable";
|
||||||
|
NSString *const MPEntryUsernameUndoableKey = @"usernameUndoable";
|
||||||
|
NSString *const MPEntryPasswordUndoableKey = @"passwordUndoable";
|
||||||
|
NSString *const MPEntryUrlUndoableKey = @"urlUndoable";
|
||||||
|
NSString *const MPEntryNotesUndoableKey = @"notesUndoable";
|
||||||
|
|
||||||
@implementation KdbEntry (Undo)
|
@implementation KdbEntry (Undo)
|
||||||
|
|
||||||
+ (NSUndoManager *)undoManager {
|
+ (NSUndoManager *)undoManager {
|
||||||
@@ -49,19 +55,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)setPasswordUndoable:(NSString *)password {
|
- (void)setPasswordUndoable:(NSString *)password {
|
||||||
[[KdbEntry undoManager] registerUndoWithTarget:self selector:@selector(setTitleUndoable:) object:self.password];
|
[[KdbEntry undoManager] registerUndoWithTarget:self selector:@selector(setPasswordUndoable:) object:self.password];
|
||||||
[[KdbEntry undoManager] setActionName:NSLocalizedString(@"UNDO_SET_PASSWORT", "Undo set password")];
|
[[KdbEntry undoManager] setActionName:NSLocalizedString(@"UNDO_SET_PASSWORT", "Undo set password")];
|
||||||
[self setPassword:password];
|
[self setPassword:password];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setUrlUndoable:(NSString *)url {
|
- (void)setUrlUndoable:(NSString *)url {
|
||||||
[[KdbEntry undoManager] registerUndoWithTarget:self selector:@selector(setTitleUndoable:) object:self.url];
|
[[KdbEntry undoManager] registerUndoWithTarget:self selector:@selector(setUrlUndoable:) object:self.url];
|
||||||
[[KdbEntry undoManager] setActionName:NSLocalizedString(@"UNDO_SET_URL", "Undo set URL")];
|
[[KdbEntry undoManager] setActionName:NSLocalizedString(@"UNDO_SET_URL", "Undo set URL")];
|
||||||
[self setUrl:url];
|
[self setUrl:url];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setNotesUndoable:(NSString *)notes {
|
- (void)setNotesUndoable:(NSString *)notes {
|
||||||
[[KdbEntry undoManager] registerUndoWithTarget:self selector:@selector(setTitleUndoable:) object:self.notes];
|
[[KdbEntry undoManager] registerUndoWithTarget:self selector:@selector(setNotesUndoable:) object:self.notes];
|
||||||
[[KdbEntry undoManager] setActionName:NSLocalizedString(@"UNDO_SET_NOTES", "Undo set notes")];
|
[[KdbEntry undoManager] setActionName:NSLocalizedString(@"UNDO_SET_NOTES", "Undo set notes")];
|
||||||
[self setNotes:notes];
|
[self setNotes:notes];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
|
|
||||||
#import "Kdb.h"
|
#import "Kdb.h"
|
||||||
|
|
||||||
|
APPKIT_EXTERN NSString *const MPGroupNameUndoableKey;
|
||||||
|
|
||||||
@interface KdbGroup (Undo)
|
@interface KdbGroup (Undo)
|
||||||
|
|
||||||
+ (NSUndoManager *)undoManager;
|
+ (NSUndoManager *)undoManager;
|
||||||
|
|
||||||
|
- (NSString *)nameUndoable;
|
||||||
|
- (void)setNameUndoable:(NSString *)newName;
|
||||||
|
|
||||||
- (void)removeEntryUndoable:(KdbEntry *)entry;
|
- (void)removeEntryUndoable:(KdbEntry *)entry;
|
||||||
- (void)addEntryUndoable:(KdbEntry *)entry;
|
- (void)addEntryUndoable:(KdbEntry *)entry;
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,24 @@
|
|||||||
|
|
||||||
#import "KdbGroup+Undo.h"
|
#import "KdbGroup+Undo.h"
|
||||||
|
|
||||||
|
NSString *const MPGroupNameUndoableKey = @"nameUndoable";
|
||||||
|
|
||||||
@implementation KdbGroup (Undo)
|
@implementation KdbGroup (Undo)
|
||||||
|
|
||||||
+ (NSUndoManager *)undoManager {
|
+ (NSUndoManager *)undoManager {
|
||||||
return [[[NSDocumentController sharedDocumentController] currentDocument] undoManager];
|
return [[[NSDocumentController sharedDocumentController] currentDocument] undoManager];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *)nameUndoable {
|
||||||
|
return [self name];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setNameUndoable:(NSString *)newName {
|
||||||
|
[[KdbGroup undoManager] registerUndoWithTarget:self selector:@selector(setNameUndoable:) object:self.name];
|
||||||
|
[[KdbGroup undoManager] setActionName:NSLocalizedString(@"UNDO_SET_NAME", "Undo set name")];
|
||||||
|
self.name = newName;
|
||||||
|
}
|
||||||
|
|
||||||
- (void)removeEntryUndoable:(KdbEntry *)entry {
|
- (void)removeEntryUndoable:(KdbEntry *)entry {
|
||||||
[[KdbGroup undoManager] registerUndoWithTarget:self selector:@selector(addEntryUndoable:) object:entry];
|
[[KdbGroup undoManager] registerUndoWithTarget:self selector:@selector(addEntryUndoable:) object:entry];
|
||||||
[[KdbGroup undoManager] setActionName:NSLocalizedString(@"UNDO_DELETE_ENTRY", "Undo deleting of entry")];
|
[[KdbGroup undoManager] setActionName:NSLocalizedString(@"UNDO_DELETE_ENTRY", "Undo deleting of entry")];
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
@class MPViewController;
|
@class MPViewController;
|
||||||
@class MPEntryViewController;
|
@class MPEntryViewController;
|
||||||
@class MPInspectorTabViewController;
|
@class MPInspectorViewController;
|
||||||
@class MPPasswordEditViewController;
|
@class MPPasswordEditViewController;
|
||||||
@class MPPasswordInputController;
|
@class MPPasswordInputController;
|
||||||
@class MPOutlineViewController;
|
@class MPOutlineViewController;
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
@property (readonly, retain) MPPasswordEditViewController *passwordEditController;
|
@property (readonly, retain) MPPasswordEditViewController *passwordEditController;
|
||||||
@property (readonly, retain) MPEntryViewController *entryViewController;
|
@property (readonly, retain) MPEntryViewController *entryViewController;
|
||||||
@property (readonly, retain) MPOutlineViewController *outlineViewController;
|
@property (readonly, retain) MPOutlineViewController *outlineViewController;
|
||||||
@property (readonly, retain) MPInspectorTabViewController *inspectorTabViewController;
|
@property (readonly, retain) MPInspectorViewController *inspectorTabViewController;
|
||||||
@property (readonly, retain) MPCreationViewController *creationViewController;
|
@property (readonly, retain) MPCreationViewController *creationViewController;
|
||||||
|
|
||||||
- (void)showEntries;
|
- (void)showEntries;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#import "MPPasswordEditViewController.h"
|
#import "MPPasswordEditViewController.h"
|
||||||
#import "MPToolbarDelegate.h"
|
#import "MPToolbarDelegate.h"
|
||||||
#import "MPOutlineViewController.h"
|
#import "MPOutlineViewController.h"
|
||||||
#import "MPInspectorTabViewController.h"
|
#import "MPInspectorViewController.h"
|
||||||
#import "MPAppDelegate.h"
|
#import "MPAppDelegate.h"
|
||||||
#import "DMSplitView.h"
|
#import "DMSplitView.h"
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
@property (retain) MPPasswordEditViewController *passwordEditController;
|
@property (retain) MPPasswordEditViewController *passwordEditController;
|
||||||
@property (retain) MPEntryViewController *entryViewController;
|
@property (retain) MPEntryViewController *entryViewController;
|
||||||
@property (retain) MPOutlineViewController *outlineViewController;
|
@property (retain) MPOutlineViewController *outlineViewController;
|
||||||
@property (retain) MPInspectorTabViewController *inspectorTabViewController;
|
@property (retain) MPInspectorViewController *inspectorTabViewController;
|
||||||
|
|
||||||
@property (retain) MPToolbarDelegate *toolbarDelegate;
|
@property (retain) MPToolbarDelegate *toolbarDelegate;
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
_needsDecryption = NO;
|
_needsDecryption = NO;
|
||||||
_toolbarDelegate = [[MPToolbarDelegate alloc] init];
|
_toolbarDelegate = [[MPToolbarDelegate alloc] init];
|
||||||
_outlineViewController = [[MPOutlineViewController alloc] init];
|
_outlineViewController = [[MPOutlineViewController alloc] init];
|
||||||
_inspectorTabViewController = [[MPInspectorTabViewController alloc] init];
|
_inspectorTabViewController = [[MPInspectorViewController alloc] init];
|
||||||
_passwordEditController = [[MPPasswordEditViewController alloc] init];
|
_passwordEditController = [[MPPasswordEditViewController alloc] init];
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
@@ -198,7 +198,8 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
|
|||||||
if(isTitleColumn || isGroupColumn) {
|
if(isTitleColumn || isGroupColumn) {
|
||||||
view = [tableView makeViewWithIdentifier:_MPTableImageCellView owner:self];
|
view = [tableView makeViewWithIdentifier:_MPTableImageCellView owner:self];
|
||||||
if( isTitleColumn ) {
|
if( isTitleColumn ) {
|
||||||
[[view textField] setStringValue:entry.title];
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"title" options:nil];
|
||||||
|
//[[view textField] setStringValue:entry.title];
|
||||||
[[view imageView] setImage:[MPIconHelper icon:(MPIconType)entry.image]];
|
[[view imageView] setImage:[MPIconHelper icon:(MPIconType)entry.image]];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -208,15 +209,18 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
|
|||||||
}
|
}
|
||||||
else if( isPasswordColum ) {
|
else if( isPasswordColum ) {
|
||||||
view = [tableView makeViewWithIdentifier:_MPTAbleSecurCellView owner:self];
|
view = [tableView makeViewWithIdentifier:_MPTAbleSecurCellView owner:self];
|
||||||
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"password" options:nil];
|
||||||
[[view textField] setStringValue:entry.password];
|
[[view textField] setStringValue:entry.password];
|
||||||
}
|
}
|
||||||
else if( isUsernameColumn || isURLColumn ) {
|
else if( isUsernameColumn || isURLColumn ) {
|
||||||
view = [tableView makeViewWithIdentifier:_MPTableStringCellView owner:self];
|
view = [tableView makeViewWithIdentifier:_MPTableStringCellView owner:self];
|
||||||
if(isURLColumn) {
|
if(isURLColumn) {
|
||||||
[[view textField] setStringValue:entry.url];
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"url" options:nil];
|
||||||
|
//[[view textField] setStringValue:entry.url];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
[[view textField] setStringValue:entry.username];
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"username" options:nil];
|
||||||
|
//[[view textField] setStringValue:entry.username];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
@class MPPopupImageView;
|
@class MPPopupImageView;
|
||||||
|
|
||||||
@interface MPInspectorTabViewController : MPViewController
|
@interface MPInspectorViewController : MPViewController
|
||||||
|
|
||||||
@property (assign) IBOutlet MPPopupImageView *itemImageView;
|
@property (assign) IBOutlet MPPopupImageView *itemImageView;
|
||||||
@property (assign) IBOutlet NSTextField *itemNameTextfield;
|
@property (assign) IBOutlet NSTextField *itemNameTextfield;
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "MPInspectorTabViewController.h"
|
#import "MPInspectorViewController.h"
|
||||||
#import "MPEntryViewController.h"
|
#import "MPEntryViewController.h"
|
||||||
#import "MPOutlineViewDelegate.h"
|
#import "MPOutlineViewDelegate.h"
|
||||||
#import "MPShadowBox.h"
|
#import "MPShadowBox.h"
|
||||||
@@ -15,8 +15,9 @@
|
|||||||
#import "MPIconSelectViewController.h"
|
#import "MPIconSelectViewController.h"
|
||||||
#import "KdbLib.h"
|
#import "KdbLib.h"
|
||||||
#import "KdbEntry+Undo.h"
|
#import "KdbEntry+Undo.h"
|
||||||
|
#import "KdbGroup+Undo.h"
|
||||||
|
|
||||||
@interface MPInspectorTabViewController () {
|
@interface MPInspectorViewController () {
|
||||||
BOOL _visible;
|
BOOL _visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,10 +39,10 @@
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation MPInspectorTabViewController
|
@implementation MPInspectorViewController
|
||||||
|
|
||||||
- (id)init {
|
- (id)init {
|
||||||
return [[MPInspectorTabViewController alloc] initWithNibName:@"InspectorTabView" bundle:nil];
|
return [[MPInspectorViewController alloc] initWithNibName:@"InspectorView" bundle:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
||||||
@@ -120,33 +121,46 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)_showEntry {
|
- (void)_showEntry {
|
||||||
[self.itemNameTextfield setStringValue:self.selectedEntry.title];
|
[self.itemNameTextfield bind:NSValueBinding toObject:self.selectedEntry withKeyPath:MPEntryTitleUndoableKey options:nil];
|
||||||
[self.itemImageView setImage:[MPIconHelper icon:(MPIconType)self.selectedEntry.image ]];
|
[self.itemImageView setImage:[MPIconHelper icon:(MPIconType)self.selectedEntry.image ]];
|
||||||
[self.passwordTextField setStringValue:self.selectedEntry.password];
|
[self.passwordTextField bind:NSValueBinding toObject:self.selectedEntry withKeyPath:MPEntryPasswordUndoableKey options:nil];
|
||||||
[self.usernameTextField bind:NSValueBinding toObject:self.selectedEntry withKeyPath:@"usernameUndoable" options:nil];
|
[self.usernameTextField bind:NSValueBinding toObject:self.selectedEntry withKeyPath:MPEntryUsernameUndoableKey options:nil];
|
||||||
//[self.usernameTextField setStringValue:self.selectedEntry.username];
|
|
||||||
[self.titleOrNameLabel setStringValue:NSLocalizedString(@"TITLE",@"")];
|
[self.titleOrNameLabel setStringValue:NSLocalizedString(@"TITLE",@"")];
|
||||||
[self.titleTextField setStringValue:self.selectedEntry.title];
|
[self.titleTextField bind:NSValueBinding toObject:self.selectedEntry withKeyPath:MPEntryTitleUndoableKey options:nil];
|
||||||
[self.URLTextField setStringValue:self.selectedEntry.url];
|
[self.URLTextField bind:NSValueBinding toObject:self.selectedEntry withKeyPath:MPEntryUrlUndoableKey options:nil];
|
||||||
|
|
||||||
[self _setInputEnabled:YES];
|
[self _setInputEnabled:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_showGroup {
|
- (void)_showGroup {
|
||||||
[self.itemNameTextfield setStringValue:self.selectedGroup.name];
|
[self.itemNameTextfield bind:NSValueBinding toObject:self.selectedGroup withKeyPath:MPGroupNameUndoableKey options:nil];
|
||||||
[self.itemImageView setImage:[MPIconHelper icon:(MPIconType)self.selectedGroup.image ]];
|
[self.itemImageView setImage:[MPIconHelper icon:(MPIconType)self.selectedGroup.image ]];
|
||||||
[self.titleOrNameLabel setStringValue:NSLocalizedString(@"NAME",@"")];
|
[self.titleOrNameLabel setStringValue:NSLocalizedString(@"NAME",@"")];
|
||||||
[self.titleTextField setStringValue:self.selectedGroup.name];
|
[self.titleTextField bind:NSValueBinding toObject:self.selectedGroup withKeyPath:MPGroupNameUndoableKey options:nil];
|
||||||
|
|
||||||
|
// Clear other bindins
|
||||||
|
[self.passwordTextField unbind:NSValueBinding];
|
||||||
|
[self.usernameTextField unbind:NSValueBinding];
|
||||||
|
[self.URLTextField unbind:NSValueBinding];
|
||||||
|
|
||||||
|
// Reset Fields
|
||||||
[self.passwordTextField setStringValue:@""];
|
[self.passwordTextField setStringValue:@""];
|
||||||
[self.usernameTextField setStringValue:@""];
|
[self.usernameTextField setStringValue:@""];
|
||||||
[self.URLTextField setStringValue:@""];
|
[self.URLTextField setStringValue:@""];
|
||||||
|
|
||||||
[self _setInputEnabled:YES];
|
[self _setInputEnabled:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_clearContent {
|
- (void)_clearContent {
|
||||||
|
|
||||||
[self _setInputEnabled:NO];
|
[self _setInputEnabled:NO];
|
||||||
|
|
||||||
|
[self.itemNameTextfield unbind:NSValueBinding];
|
||||||
|
[self.passwordTextField unbind:NSValueBinding];
|
||||||
|
[self.usernameTextField unbind:NSValueBinding];
|
||||||
|
[self.titleTextField unbind:NSValueBinding];
|
||||||
|
[self.URLTextField unbind:NSValueBinding];
|
||||||
|
|
||||||
[self.itemNameTextfield setStringValue:NSLocalizedString(@"INSPECTOR_NO_SELECTION", @"No item selected in inspector")];
|
[self.itemNameTextfield setStringValue:NSLocalizedString(@"INSPECTOR_NO_SELECTION", @"No item selected in inspector")];
|
||||||
[self.itemImageView setImage:[NSImage imageNamed:NSImageNameActionTemplate]];
|
[self.itemImageView setImage:[NSImage imageNamed:NSImageNameActionTemplate]];
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>74B</string>
|
<string>759</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user