Flipping a Window in Cocoa

人走茶凉 提交于 2019-12-11 04:05:05

问题


How can I flip an NSWindow so I can press a button, and the window will "flip" like on Dashboard and the content view of the NSWindow changes.


回答1:


Step 1: Center the window on a vertically-aligned fulcrum.
Step 2: Push down on one side.

OK, that's not it. ☺

Mike Lee wrote one and put it in the public domain, and Drew McCormack improved it. Rainer Brockerhoff wrote one, too, and put his under an MIT license. So you have your choice.



来源:https://stackoverflow.com/questions/2490069/flipping-a-window-in-cocoa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!