I am working on an application that has a status menu, and from this menu the user can open the main application window. I need to open this window on top of full-screen applications. The following code works fine if the Application is an agent (UIElement) installed YES :
- (IBAction)showMainWindow:(id)sender { [_window makeKeyAndOrderFront:self]; [NSApp activateIgnoringOtherApps:YES]; }
However, I want to have an icon in the dock. If the Application is an agent (UIElement) is set to NO , showMainWindow forces the application to move to another space, rather than appearing on top of the active full-screen application. Is there a solution for this?
source share