Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting the minimum and maximum size of a window

How does one set the maximum and minimum size of a window in OS X, using the Objective-C libraries?

like image 563
jmasterx Avatar asked Apr 26 '11 19:04

jmasterx


People also ask

What is the maximum size of window?

The most common widths for picture windows are 2 ft, 3 ft, 4 ft, 6 ft, and 8 ft. Standard picture window heights can range from 1 ft to as tall as 8ft.

How do I set window dimensions?

Press Alt + Space shortcut keys together on the keyboard to open the window menu. Now, press S. The mouse cursor will turn into a cross with arrows. Use the left, right, up and down arrow keys to resize your window.

What should be the minimum size of the window in a room?

The area of window-openings should be at least one square metre for every 30 to 40 cubic metre of inside content of the room. In public buildings, the minimum area of windows should be 20 % of floor area. For sufficient natural light, the area of glazed panels should at least be 8 to 10% of the floor area.

How do I change the window size in Visual Studio?

Select the form, then find the Properties pane in Visual Studio. Scroll down to size and expand it. You can set the Width and Height manually.


1 Answers

[theWindow setMaxSize:windowMaxSize];
[theWindow setMinSize:windowMinSize];

NSWindow Class Reference

like image 169
ughoavgfhw Avatar answered Sep 29 '22 12:09

ughoavgfhw