Overlay windows now can be display floating on the screen.

This commit is contained in:
michael starke
2014-12-12 22:13:35 +01:00
parent 0b4a35c6d4
commit 3bff2a4f73
3 changed files with 57 additions and 20 deletions

View File

@@ -57,11 +57,17 @@ NSString *const kMPProcessIdentifierKey = @"kMPProcessIdentifierKey";
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:[MPSettingsHelper defaultControllerPathForKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]
options:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(_applicationWillBecomeActive:)
name:NSApplicationWillBecomeActiveNotification
object:[NSApplication sharedApplication]];
}
return self;
}
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[self unbind:NSStringFromSelector(@selector(enabled))];
[self unbind:NSStringFromSelector(@selector(hotKeyData))];
}
@@ -259,6 +265,13 @@ NSString *const kMPProcessIdentifierKey = @"kMPProcessIdentifierKey";
[self _performAutotypeUsingCurrentWindowAndApplication:NO];
}
#pragma mark -
#pragma mark NSApplication Notifications
- (void)_applicationWillBecomeActive:(NSNotification *)notification {
//[self _updateTargetApplicationAndWindow];
//NSLog(@"_applicaiontWillBecomActive");
}
#pragma mark -
#pragma mark Application information