Skip to content
Snippets Groups Projects
Commit 1c5f3949 authored by George Nachman's avatar George Nachman
Browse files

Add ability to copy password from password manager

parent e19c58ea
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16E195" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="12121"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
Loading
Loading
@@ -32,7 +32,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" id="yan-v0-dhd">
<rect key="frame" x="1" y="0.0" width="463" height="260"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="firstColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="7EL-It-qNK" id="JC7-GD-2vC">
<rect key="frame" x="0.0" y="0.0" width="463" height="243"/>
Loading
Loading
@@ -89,7 +89,7 @@
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
<searchField wantsLayer="YES" verticalHuggingPriority="750" id="PwG-br-FdK" customClass="iTermSearchField">
<searchField wantsLayer="YES" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="PwG-br-FdK" customClass="iTermSearchField">
<rect key="frame" x="20" y="318" width="465" height="22"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<searchFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" borderStyle="bezel" placeholderString="Account Name" usesSingleLineMode="YES" bezelStyle="round" id="lOy-Zp-5fu">
Loading
Loading
@@ -176,6 +176,12 @@ Gw
<action selector="revealPassword:" target="-2" id="afJ-HM-r97"/>
</connections>
</menuItem>
<menuItem title="Copy Password" id="JCZ-Y8-Qwb">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="copyPassword:" target="-2" id="MWE-rW-rkX"/>
</connections>
</menuItem>
</items>
<point key="canvasLocation" x="-482" y="379"/>
</menu>
Loading
Loading
Loading
Loading
@@ -268,6 +268,12 @@ static BOOL sAuthenticated;
}
}
 
- (IBAction)copyPassword:(id)sender {
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
[pasteboard declareTypes:@[ NSStringPboardType ] owner:self];
[pasteboard setString:[self selectedPassword] forType:NSStringPboardType];
}
#pragma mark - Private
 
- (Class)keychain {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment