开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜