NS任务控制通知

时间:2014-04-30 01:12:34

标签: cocoa nsnotificationcenter

是否可以在Cocoa应用程序中接收启动Mission Control的通知?

我尝试了以下但没有成功:

- (void)applicationDidFinishLaunching:(NSNotification *)notification {

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notify:) name:NSWorkspaceActiveSpaceDidChangeNotification object:nil];
}

- (void)notify:(NSNotification *)notifcation {
    NSLog(@"mission control called");
}

0 个答案:

没有答案