简体   繁体   中英

How to make an NSWindow only resizable vertically?

I have a Window in my NIB which is resizable, but would like to enforce it to only be resizable vertically. How can I go about doing this?

In IB's size section, for both minimum and maximum width give the same value then you will not be able to re size horizontally.

请参阅以下屏幕截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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