Artwork + copying of password.
BIN
OnePassword/Background.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
OnePassword/Background@2x.png
Normal file
After Width: | Height: | Size: 361 KiB |
BIN
OnePassword/Icon-72.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
OnePassword/Icon-Small-50.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
OnePassword/Icon-Small.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
OnePassword/Icon-Small@2x.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
OnePassword/Icon.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
OnePassword/Icon@2x.png
Normal file
After Width: | Height: | Size: 13 KiB |
@@ -20,5 +20,6 @@
|
||||
@property (weak, nonatomic) IBOutlet UISegmentedControl *contentType;
|
||||
|
||||
- (IBAction)didChangeContentType:(UISegmentedControl *)sender;
|
||||
- (IBAction)didTriggerContent:(id)sender;
|
||||
|
||||
@end
|
||||
|
@@ -55,6 +55,7 @@
|
||||
|
||||
// Because IB's edit button doesn't auto-toggle self.editable like editButtonItem does.
|
||||
self.navigationItem.rightBarButtonItem = self.editButtonItem;
|
||||
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]];
|
||||
|
||||
[super viewDidLoad];
|
||||
}
|
||||
@@ -91,7 +92,9 @@
|
||||
|
||||
- (void)updateWasAnimated:(BOOL)animated {
|
||||
|
||||
self.typeLabel.text = self.activeElement? NSStringFromOPElementType(self.activeElement.type): @"moo";
|
||||
self.searchDisplayController.searchBar.placeholder = self.activeElement.name;
|
||||
|
||||
self.typeLabel.text = self.activeElement? NSStringFromOPElementType(self.activeElement.type): @"";
|
||||
|
||||
self.contentTextView.alpha = self.contentType.selectedSegmentIndex == OPElementContentTypeNote? 1: 0;
|
||||
self.contentTextView.editable = self.editing && self.activeElement.type & OPElementTypeStored;
|
||||
@@ -106,9 +109,6 @@
|
||||
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
|
||||
NSString *contentDescription = self.activeElement.contentDescription;
|
||||
if (contentDescription)
|
||||
[self.activeElement use];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
self.contentField.text = contentDescription;
|
||||
});
|
||||
@@ -123,6 +123,12 @@
|
||||
[self updateAnimated:YES];
|
||||
}
|
||||
|
||||
- (IBAction)didTriggerContent:(id)sender {
|
||||
|
||||
[[UIPasteboard generalPasteboard] setValue:self.activeElement.content
|
||||
forPasteboardType:self.activeElement.contentUTI];
|
||||
}
|
||||
|
||||
- (void)didSelectType:(OPElementType)type {
|
||||
|
||||
self.activeElement.type = type;
|
||||
@@ -132,10 +138,11 @@
|
||||
- (void)didSelectElement:(OPElementEntity *)element {
|
||||
|
||||
self.activeElement = element;
|
||||
[self.activeElement use];
|
||||
[self updateAnimated:YES];
|
||||
|
||||
self.searchDisplayController.searchBar.text = @"";
|
||||
[self.searchDisplayController setActive:NO animated:YES];
|
||||
self.searchDisplayController.searchBar.text = self.activeElement.name;
|
||||
}
|
||||
|
||||
- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar {
|
||||
@@ -143,4 +150,9 @@
|
||||
[self updateAnimated:YES];
|
||||
}
|
||||
|
||||
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@@ -9,7 +9,25 @@
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array/>
|
||||
<array>
|
||||
<string>Icon.png</string>
|
||||
<string>Icon@2x.png</string>
|
||||
<string>Icon-72.png</string>
|
||||
</array>
|
||||
<key>CFBundleIcons</key>
|
||||
<dict>
|
||||
<key>CFBundlePrimaryIcon</key>
|
||||
<dict>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array>
|
||||
<string>Icon.png</string>
|
||||
<string>Icon@2x.png</string>
|
||||
<string>Icon-72.png</string>
|
||||
</array>
|
||||
<key>UIPrerenderedIcon</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.lyndir.lhunath.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
@@ -32,12 +50,12 @@
|
||||
<string>MainStoryboard_iPhone</string>
|
||||
<key>UIMainStoryboardFile~ipad</key>
|
||||
<string>MainStoryboard_iPad</string>
|
||||
<key>UIPrerenderedIcon</key>
|
||||
<true/>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UIStatusBarStyle</key>
|
||||
<string>UIStatusBarStyleBlackOpaque</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
|
@@ -218,15 +218,6 @@
|
||||
</scene>
|
||||
<scene sceneID="Rm6-uL-WP4">
|
||||
<objects>
|
||||
<searchDisplayController id="P8c-gf-nN3">
|
||||
<connections>
|
||||
<outlet property="delegate" destination="0QO-2P-OhD" id="gst-Hm-5ja"/>
|
||||
<outlet property="searchBar" destination="qeo-n2-WVh" id="bFO-FC-Xdj"/>
|
||||
<outlet property="searchContentsController" destination="b9f-OB-AqY" id="xgo-Uj-wpm"/>
|
||||
<outlet property="searchResultsDataSource" destination="0QO-2P-OhD" id="XJh-rC-kId"/>
|
||||
<outlet property="searchResultsDelegate" destination="0QO-2P-OhD" id="Bm8-Q3-lLA"/>
|
||||
</connections>
|
||||
</searchDisplayController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="8LM-KK-u1f" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<tableViewController id="b9f-OB-AqY" customClass="OPMainViewController" sceneMemberID="viewController">
|
||||
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="singleLineEtched" rowHeight="44" sectionHeaderHeight="10" sectionFooterHeight="10" id="y6z-21-Ptd">
|
||||
@@ -252,6 +243,9 @@
|
||||
<state key="highlighted">
|
||||
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="didTriggerContent:" destination="b9f-OB-AqY" eventType="touchUpInside" id="Ost-qu-K2L"/>
|
||||
</connections>
|
||||
</button>
|
||||
<imageView userInteractionEnabled="NO" contentMode="center" image="Square.png" id="qWn-td-zdb">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="222"/>
|
||||
@@ -269,7 +263,7 @@
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="textColor" red="0.36470589040000001" green="0.40000003579999999" blue="0.47843140360000003" alpha="1" colorSpace="deviceRGB"/>
|
||||
<fontDescription key="fontDescription" name="AmericanTypewriter-Bold" family="American Typewriter" pointSize="20"/>
|
||||
<textInputTraits key="textInputTraits"/>
|
||||
<textInputTraits key="textInputTraits" autocorrectionType="no"/>
|
||||
</textField>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
@@ -292,7 +286,7 @@
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<gestureRecognizers/>
|
||||
<color key="tintColor" red="0.36470589040000001" green="0.40000003579999999" blue="0.47843140360000003" alpha="1" colorSpace="deviceRGB"/>
|
||||
<textInputTraits key="textInputTraits"/>
|
||||
<textInputTraits key="textInputTraits" autocorrectionType="no" keyboardType="URL"/>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="b9f-OB-AqY" id="8OW-dn-MdW"/>
|
||||
</connections>
|
||||
@@ -352,6 +346,15 @@
|
||||
<outlet property="typeLabel" destination="QgX-q3-JLG" id="tv1-jy-Qbu"/>
|
||||
</connections>
|
||||
</tableViewController>
|
||||
<searchDisplayController id="P8c-gf-nN3">
|
||||
<connections>
|
||||
<outlet property="delegate" destination="0QO-2P-OhD" id="gst-Hm-5ja"/>
|
||||
<outlet property="searchBar" destination="qeo-n2-WVh" id="bFO-FC-Xdj"/>
|
||||
<outlet property="searchContentsController" destination="b9f-OB-AqY" id="xgo-Uj-wpm"/>
|
||||
<outlet property="searchResultsDataSource" destination="0QO-2P-OhD" id="XJh-rC-kId"/>
|
||||
<outlet property="searchResultsDelegate" destination="0QO-2P-OhD" id="Bm8-Q3-lLA"/>
|
||||
</connections>
|
||||
</searchDisplayController>
|
||||
<customObject id="0QO-2P-OhD" customClass="OPSearchDelegate">
|
||||
<connections>
|
||||
<outlet property="delegate" destination="b9f-OB-AqY" id="y3b-no-DZQ"/>
|
||||
@@ -389,6 +392,7 @@
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/OPMainViewController.h"/>
|
||||
<relationships>
|
||||
<relationship kind="action" name="didChangeContentType:" candidateClass="UISegmentedControl"/>
|
||||
<relationship kind="action" name="didTriggerContent:"/>
|
||||
<relationship kind="outlet" name="contentField" candidateClass="UITextField"/>
|
||||
<relationship kind="outlet" name="contentTextView" candidateClass="UITextView"/>
|
||||
<relationship kind="outlet" name="contentType" candidateClass="UISegmentedControl"/>
|
||||
@@ -408,7 +412,7 @@
|
||||
</class>
|
||||
</classes>
|
||||
<simulatedMetricsContainer key="defaultSimulatedMetrics">
|
||||
<simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
|
||||
<simulatedStatusBarMetrics key="statusBar"/>
|
||||
<simulatedOrientationMetrics key="orientation"/>
|
||||
<simulatedScreenMetrics key="destination"/>
|
||||
</simulatedMetricsContainer>
|
||||
|
BIN
OnePassword/iTunesArtwork.png
Normal file
After Width: | Height: | Size: 153 KiB |