Bug 107066

Summary: v 5.1.6.2 on Mac Clicking document in finder doesn't show document window until mouse position moves.
Product: LibreOffice Reporter: Lorand Andahazy <lorand>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: medium    
Version: 5.1.6.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:

Description Lorand Andahazy 2017-04-10 13:03:40 UTC
This is likely due to the code not using a delegate to initiate the application. 
Example delegate:

#import "AppDelegate.h"
#import "yourapp.h"
@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
    // Insert code here to initialize your application
    [_window setAlphaValue:1.00];   //etc. as needed
}

- (void)applicationDidBecomeActive:(NSNotification *)aNotification
{
    [_window setAlphaValue:1.00];
}

- (void)applicationDidResignActive:(NSNotification *)aNotification
{
    [_window setAlphaValue: _controller.alphaState];
}

- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
{
    return NSTerminateNow;      //NSTerminateCancel
}

- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
    return YES;
}
@end
Comment 1 Telesto 2017-04-10 18:09:47 UTC
Looks like bug 77444
Comment 2 Alex Thurgood 2017-04-11 07:21:13 UTC

*** This bug has been marked as a duplicate of bug 77444 ***