Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Handle window reopening on dock icon click/tap
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafif Yalda committed Apr 9, 2013
1 parent e34d7d9 commit af3a619
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions SoundCleod/AppDelegate.m
Expand Up @@ -58,6 +58,18 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
name: NSWorkspaceWillSleepNotification object: NULL];
}


- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
{
if (flag == NO)
{
[window makeKeyAndOrderFront:self];
}

return YES;
}


- (void)awakeFromNib
{
[webView setUIDelegate:self];
Expand Down

0 comments on commit af3a619

Please sign in to comment.