문제

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 attempts 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top