Is there a way to make a custom NSWindow work with Spaces

后端 未结 3 1894
别跟我提以往
别跟我提以往 2021-02-03 15:07

I\'m writing an app that has a custom, transparent NSWindow created using a NSWindow subclass with the following:

- (id)initWithContentRect:(NSRect)contentRect s         


        
3条回答
  •  逝去的感伤
    2021-02-03 15:28

    Did you override isMovable?
    The Apple documentation says, that it changes Spaces behavior:

    If a window returns NO, that means it can only be dragged between spaces in F8 mode, ...

    Another method that might be related: NSWindow setCollectionBehavior

提交回复
热议问题