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

Reopen NSWindow when dock icon is clicked #11

Merged
merged 2 commits into from Apr 10, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions SoundCleod/AppDelegate.m
Expand Up @@ -58,6 +58,18 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
name: NSWorkspaceWillSleepNotification object: NULL]; name: NSWorkspaceWillSleepNotification object: NULL];
} }



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

return YES;
}


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