Listen for window resize event in Swift / Objective-C

前端 未结 4 1412
忘了有多久
忘了有多久 2020-12-30 04:35

Is it possible to iterate over all open windows of any application in OSX and listen to their resize events in Swift? I want to create custom window manager that would move

4条回答
  •  忘掉有多难
    2020-12-30 05:17

    With Swift 3 the windowDidResize method should look like the following:

    func windowDidResize(_ notification: Notification) {
        // Listen to a window resize event
    
    }
    

提交回复
热议问题