开发者

How to write an own resize corner/handle for an NSWindow?

开发者 https://www.devze.com 2023-02-04 13:17 出处:网络
How can I write an own resize corner/handle for an NSWindow? I\'m using a subclass of 开发者_如何学Goan NSWindow without the default resize corner, but I need it for my window.

How can I write an own resize corner/handle for an NSWindow? I'm using a subclass of 开发者_如何学Goan NSWindow without the default resize corner, but I need it for my window.

How to write an own resize corner/handle for an NSWindow?


The basic outline:

  • Create a view.
  • Put some "drag me" indicator appropriate to your window in the view.
  • Have the view's drag action method respond by resizing the window so that the corner in question is now located at the current mouse position.
0

精彩评论

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