开发者

Cocoa: Return to previous active application?

开发者 https://www.devze.com 2022-12-10 11:18 出处:网络
is there a way to capture application that was previously active, before my application was brought to front by user?

is there a way to capture application that was previously active, before my application was brought to front by user?

I've tried to this in applicationWillBecomeActive: delegate method, but my application is alread开发者_如何学Pythony mark as active.

Thanks.


Register for the NSWorkspaceDidDeactivateApplicationNotification notification in NSWorkspace. This will give you an NSRunningApplication instance of what was deactivated.

0

精彩评论

暂无评论...
验证码 换一张
取 消