Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Reopen NSWindow when dock icon is clicked #11

Merged
merged 2 commits into from

2 participants

@rafifyalda

This PR includes an NSApplicationDelegate method to handle reopening the window after being closed with the close traffic light or Cmd-W.

@salomvary salomvary merged commit e0dab33 into salomvary:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. @rafifyalda
  2. @rafifyalda

    Tab/space fixing

    rafifyalda authored
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 SoundCleod/AppDelegate.m
View
12 SoundCleod/AppDelegate.m
@@ -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];
Something went wrong with that request. Please try again.