mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 12:52:21 +00:00
codestyle
This commit is contained in:
@@ -299,7 +299,7 @@ static NSString *kMPContentBindingString3 = @"content.%@.%@.%@";
|
|||||||
[_activePopover showRelativeToRect:NSZeroRect ofView:view preferredEdge:edge];
|
[_activePopover showRelativeToRect:NSZeroRect ofView:view preferredEdge:edge];
|
||||||
}
|
}
|
||||||
|
|
||||||
- ( BOOL) popoverShouldClose: ( NSPopover*) popover {
|
- (BOOL)popoverShouldClose:(NSPopover *)popover {
|
||||||
/* See http://stackoverflow.com/a/34215887/353268
|
/* See http://stackoverflow.com/a/34215887/353268
|
||||||
* PasswordCreator uses a NSNumberFormatter to validate the input.
|
* PasswordCreator uses a NSNumberFormatter to validate the input.
|
||||||
* If the user types something that's not a number it will open a
|
* If the user types something that's not a number it will open a
|
||||||
@@ -307,10 +307,7 @@ static NSString *kMPContentBindingString3 = @"content.%@.%@.%@";
|
|||||||
*
|
*
|
||||||
* This stops the popover to close when the dialog is active.
|
* This stops the popover to close when the dialog is active.
|
||||||
*/
|
*/
|
||||||
if( ![[[[ popover contentViewController] view] window] makeFirstResponder: popover]) {
|
return ![popover.contentViewController.view.window makeFirstResponder:popover];
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
return YES;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)popoverDidClose:(NSNotification *)notification {
|
- (void)popoverDidClose:(NSNotification *)notification {
|
||||||
|
|||||||
Reference in New Issue
Block a user