diff --git a/MacPass/Base.lproj/InspectorView.xib b/MacPass/Base.lproj/InspectorView.xib
index 2ae6688e..ef6cd7e1 100644
--- a/MacPass/Base.lproj/InspectorView.xib
+++ b/MacPass/Base.lproj/InspectorView.xib
@@ -94,7 +94,7 @@
{{73, 477}, {209, 17}}
-
+
_NS:1535
{200, 750}
YES
@@ -137,23 +137,26 @@
{299, 30}
-
_NS:9
HNHGradientView
@@ -3234,7 +3294,7 @@
com.apple.InterfaceBuilder.CocoaPlugin
-
+
@@ -3265,8 +3325,10 @@
-
+
+
+
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
@@ -3399,9 +3461,14 @@
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
-
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+
@@ -3447,7 +3514,7 @@
- 1920
+ 1940
@@ -3494,13 +3561,24 @@
MPInspectorViewController
MPViewController
+
+ _popUpPasswordGenerator:
+ id
+
+
+ _popUpPasswordGenerator:
+
+ _popUpPasswordGenerator:
+ id
+
+
NSTextField
NSTableView
HNHGradientView
+ NSTextField
NSButton
NSSegmentedControl
- NSTextField
MPPopupImageView
NSTextField
NSTextView
@@ -3524,6 +3602,10 @@
bottomBar
HNHGradientView
+
+ createdTextField
+ NSTextField
+
generatePasswordButton
NSButton
@@ -3532,10 +3614,6 @@
infoTabControl
NSSegmentedControl
-
- infoTextField
- NSTextField
-
itemImageView
MPPopupImageView
diff --git a/MacPass/MPInspectorViewController.h b/MacPass/MPInspectorViewController.h
index 042af0ca..e2eb0814 100644
--- a/MacPass/MPInspectorViewController.h
+++ b/MacPass/MPInspectorViewController.h
@@ -25,8 +25,8 @@
@property (assign) IBOutlet NSTextField *passwordTextField;
@property (assign) IBOutlet NSTextField *titleOrNameLabel;
@property (assign) IBOutlet HNHGradientView *bottomBar;
-@property (assign) IBOutlet NSTextField *infoTextField;
-@property (assign) IBOutlet NSView *scrollContentView;
+@property (assign) IBOutlet NSTextField *createdTextField;
+@property (assign) IBOutlet NSTextField *modifiedTextField;
@property (assign) IBOutlet NSSegmentedControl *infoTabControl;
@property (assign) IBOutlet NSTableView *attachmentTableView;
@property (assign) IBOutlet NSTextView *notesTextView;
diff --git a/MacPass/MPInspectorViewController.m b/MacPass/MPInspectorViewController.m
index 75b64142..4258f58f 100644
--- a/MacPass/MPInspectorViewController.m
+++ b/MacPass/MPInspectorViewController.m
@@ -75,14 +75,11 @@ enum {
}
- (void)didLoadView {
- [self.scrollContentView setAutoresizingMask:NSViewWidthSizable];
+ //[self.scrollContentView setAutoresizingMask:NSViewWidthSizable];
[[self.itemImageView cell] setBackgroundStyle:NSBackgroundStyleRaised];
[self.itemImageView setTarget:self];
[_bottomBar setBorderType:HNHBorderTop];
- //[[_infoTabControl cell] setTag:MPAdvancedTab forSegment:MPAdvancedTab];
- //[[_infoTabControl cell] setTag:MPGeneralTab forSegment:MPGeneralTab];
-
[_infoTabControl bind:NSSelectedIndexBinding toObject:self withKeyPath:@"activeTab" options:nil];
[_tabView bind:NSSelectedIndexBinding toObject:self withKeyPath:@"activeTab" options:nil];
@@ -100,33 +97,22 @@ enum {
object:windowController];
}
-- (void)_updateInfoString {
- NSDate *modificationDate;
- NSDate *creationDate;
- if(self.selectedEntry) {
- modificationDate = self.selectedEntry.lastModificationTime;
- creationDate = self.selectedEntry.creationTime;
- }
- else {
- modificationDate = self.selectedGroup.lastModificationTime;
- creationDate = self.selectedGroup.creationTime;
- }
+- (void)setModificationDate:(NSDate *)modificationDate {
NSString *modificationString = [NSDateFormatter localizedStringFromDate:modificationDate
dateStyle:NSDateFormatterShortStyle
timeStyle:NSDateFormatterShortStyle];
- NSString *creationString = [NSDateFormatter localizedStringFromDate:modificationDate
- dateStyle:NSDateFormatterShortStyle
- timeStyle:NSDateFormatterShortStyle];
-
- [self.infoTextField setStringValue:[NSString stringWithFormat:@"created: %@ modified: %@", creationString, modificationString]];
-}
+ NSString *modifedAtTemplate = NSLocalizedString(@"MODIFED_AT_%@", @"Modifed at template string. %@ is replaced by locaized date and time");
+ [self.modifiedTextField setStringValue:[NSString stringWithFormat:modifedAtTemplate, modificationString]];
-- (void)setModificationDate:(NSDate *)modificationDate {
- [self _updateInfoString];
}
- (void)setCreationDate:(NSDate *)creationDate {
- [self _updateInfoString];
+ NSString *creationString = [NSDateFormatter localizedStringFromDate:creationDate
+ dateStyle:NSDateFormatterShortStyle
+ timeStyle:NSDateFormatterShortStyle];
+
+ NSString *createdAtTemplate = NSLocalizedString(@"CREATED_AT_%@", @"Created at template string. %@ is replaced by locaized date and time");
+ [self.createdTextField setStringValue:[NSString stringWithFormat:createdAtTemplate, creationString]];
}
- (void)_updateContent {
@@ -224,6 +210,9 @@ enum {
[self.URLTextField setStringValue:@""];
[self.notesTextView setString:@""];
+ [self.createdTextField setStringValue:@""];
+ [self.modifiedTextField setStringValue:@""];
+
}
- (void)_setInputEnabled:(BOOL)enabled {
diff --git a/MacPass/MPOverlayView.m b/MacPass/MPOverlayView.m
index b62a8cda..7c99c57b 100644
--- a/MacPass/MPOverlayView.m
+++ b/MacPass/MPOverlayView.m
@@ -18,7 +18,6 @@
NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self bounds] xRadius:10 yRadius:10];
[backgroundColor set];
[path fill];
-
[[NSGraphicsContext currentContext] restoreGraphicsState];
}
diff --git a/MacPass/MPShadowBox.m b/MacPass/MPShadowBox.m
index f79e6843..49569164 100644
--- a/MacPass/MPShadowBox.m
+++ b/MacPass/MPShadowBox.m
@@ -61,7 +61,7 @@
- (void)setShadowDisplay:(MPShadowDisplay)shadowDisplay {
if(_shadowDisplay != shadowDisplay) {
_shadowDisplay = shadowDisplay;
- [self needsDisplay];
+ [self setNeedsDisplay:YES];
}
}
diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist
index 1a936f95..4e3fee16 100644
--- a/MacPass/MacPass-Info.plist
+++ b/MacPass/MacPass-Info.plist
@@ -48,7 +48,7 @@
CFBundleSignature
????
CFBundleVersion
- 990
+ 1000
LSMinimumSystemVersion
${MACOSX_DEPLOYMENT_TARGET}
NSHumanReadableCopyright
diff --git a/MacPass/de.lproj/Localizable.strings b/MacPass/de.lproj/Localizable.strings
index ed872bfd..52ebd829 100644
Binary files a/MacPass/de.lproj/Localizable.strings and b/MacPass/de.lproj/Localizable.strings differ
diff --git a/MacPass/en.lproj/Localizable.strings b/MacPass/en.lproj/Localizable.strings
index 9baefd8e..b4c89ab9 100644
Binary files a/MacPass/en.lproj/Localizable.strings and b/MacPass/en.lproj/Localizable.strings differ