mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 08:52:20 +00:00
Wired up tags in group inspector
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="288">
|
||||
<rect key="frame" x="492" y="13" width="54" height="32"/>
|
||||
<rect key="frame" x="433" y="13" width="54" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="289">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -71,7 +71,7 @@ DQ
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="956">
|
||||
<rect key="frame" x="418" y="13" width="76" height="32"/>
|
||||
<rect key="frame" x="359" y="13" width="76" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="957">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -84,7 +84,7 @@ Gw
|
||||
</connections>
|
||||
</button>
|
||||
<tabView translatesAutoresizingMaskIntoConstraints="NO" id="357">
|
||||
<rect key="frame" x="13" y="40" width="533" height="439"/>
|
||||
<rect key="frame" x="13" y="40" width="474" height="310"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
<tabViewItems>
|
||||
<tabViewItem label="General" identifier="1" id="358">
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<outlet property="expireDateSelectButton" destination="4" id="W6H-j5-GLf"/>
|
||||
<outlet property="expiresCheckButton" destination="5" id="283"/>
|
||||
<outlet property="searchPopupButton" destination="229" id="284"/>
|
||||
<outlet property="tagsTokenField" destination="5ty-ww-t4q" id="MD7-yb-kgI"/>
|
||||
<outlet property="titleTextField" destination="23" id="35"/>
|
||||
<outlet property="view" destination="37" id="45"/>
|
||||
</connections>
|
||||
|
||||
@@ -27,14 +27,15 @@
|
||||
@interface MPGroupInspectorViewController : MPViewController
|
||||
|
||||
@property (strong) IBOutlet NSView *contentView;
|
||||
@property (weak) IBOutlet HNHUITextField *titleTextField;
|
||||
@property (strong) IBOutlet HNHUITextField *titleTextField;
|
||||
|
||||
@property (weak) IBOutlet NSButton *expiresCheckButton;
|
||||
@property (weak) IBOutlet NSButton *expireDateSelectButton;
|
||||
@property (strong) IBOutlet NSButton *expiresCheckButton;
|
||||
@property (strong) IBOutlet NSButton *expireDateSelectButton;
|
||||
|
||||
@property (weak) IBOutlet NSPopUpButton *searchPopupButton;
|
||||
@property (weak) IBOutlet NSPopUpButton *autotypePopupButton;
|
||||
@property (weak) IBOutlet HNHUITextField *autotypeSequenceTextField;
|
||||
@property (strong) IBOutlet NSPopUpButton *searchPopupButton;
|
||||
@property (strong) IBOutlet NSPopUpButton *autotypePopupButton;
|
||||
@property (strong) IBOutlet HNHUITextField *autotypeSequenceTextField;
|
||||
@property (strong) IBOutlet NSTokenField *tagsTokenField;
|
||||
|
||||
- (void)registerNotificationsForDocument:(MPDocument *)document;
|
||||
@end
|
||||
|
||||
@@ -127,6 +127,10 @@
|
||||
toObject:self
|
||||
withKeyPath:[NSString stringWithFormat:@"%@.%@", NSStringFromSelector(@selector(representedObject)), NSStringFromSelector(@selector(isSearchEnabled))]
|
||||
options:nil];
|
||||
[self.tagsTokenField bind:NSValueBinding
|
||||
toObject:self
|
||||
withKeyPath:[NSString stringWithFormat:@"%@.%@", NSStringFromSelector(@selector(representedObject)), NSStringFromSelector(@selector(tags))]
|
||||
options:nullPlaceholderOptionsDict];
|
||||
}
|
||||
- (IBAction)toggleExpire:(NSButton*)sender {
|
||||
KPKGroup *group = self.representedObject;
|
||||
|
||||
Reference in New Issue
Block a user