翻转一个窗口在可可粉 [英] Flipping a Window in Cocoa

查看:172
本文介绍了翻转一个窗口在可可粉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何翻转NSWindow,以便我可以按下按钮,窗口将在Dashboard上翻转,并改变NSWindow的内容视图。

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:将窗口置于垂直对齐的支点上。

步骤2:向下按一下。

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

确定,不是这样。 ☺

Mike Lee撰写了一篇文章并将其放在公共领域, Drew McCormack改进了它 Rainer Brockerhoff也撰写了一篇文章,并将他置于MIT许可证下。所以你有你的选择。

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.

这篇关于翻转一个窗口在可可粉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆