- (void)applicationWillBecomeActive:(NSNotification *)notification
{
NSRunAlertPanel(@"Wee I am called", @"Hello", @"OK", @"Alternate Button", @"OtherButton");
[showdesktop showDeskHideMe];
}
The problem with code above is it's only launched when the app is first launched.
If after that I open up other apps, and then click the apps again from the dock, the code will not be launched.
How do I do that?
How to "deactivate" an application anyway?
Note: This is about MacOs, not IOS!!!