开发者

Preventing an application from being moved between spaces

开发者 https://www.devze.com 2022-12-12 13:25 出处:网络
Working on an application that contains legacy Carbon code (mixed with some Cocoa). It is a full screen app (not technically, it just draws itself as though it were) that hides the dock and applicatio

Working on an application that contains legacy Carbon code (mixed with some Cocoa). It is a full screen app (not technically, it just draws itself as though it were) that hides the dock and application menu bar when active.

What I'd like to do is prevent the application from being allowed to move between Spaces. Basically, if the user at开发者_StackOverflow社区tempts to use spaces the application is unmovable (or does not appear in the preview of applications at all).

Any pointers/tips?


You don't move applications between spaces; you move windows between spaces.

Thus, the solution is in NSWindow's collectionBehavior property.

0

精彩评论

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

关注公众号