Finder在辅助显示器上没有响应[NSRunningApplication activateWithOptions]

时间:2015-04-07 13:18:01

标签: macos osx-yosemite nsrunningapplication

我正在尝试将Finder窗口置于前面:

NSRunningApplication *finder = [NSRunningApplication runningApplicationWithProcessIdentifier:finderPID];
[finder activateWithOptions:NSApplicationActivateIgnoringOtherApps];

这适用于主要的内置显示器。但是在我的外部显示器上,调用-activateWithOptions后Finder窗口无法获得焦点。这是预期的行为吗?这是一个错误吗?

0 个答案:

没有答案