简体   繁体   English

如何设置NSWindow的大小,相对NSTextField的高度?

[英]How set size NSWindow, relative NSTextField height?

如何相对于NSTextField的高度设置NSWindow的大小?

There is NSButton in my application. 我的应用程序中有NSButton。 When it is pushed NSTextField is loaded with the new text from web service. 按下该按钮后,NSTextField就会从Web服务中加载新文本。 So that means that the height of NSTextField is always dynamic. 因此,这意味着NSTextField的高度始终是动态的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM