Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Binju

macrumors member
Original poster
Jan 31, 2010
65
0
I want to set the mainwindow.xib size to the screen size of the system ?

how to do?
 
A .xib is a file on your filesystem. It contains serialised objects. The size of an xib is measured in kilobytes. So you cannot set the size of an xib to be the size of your screen.

An xib can contain one or more seralized windows. These are not the same as the xib and should not be referred to as the xib. I hope the distinction is clear.

To set the size of a window to the size of the screen you'll need to do it in code (as the screen size on the machine may change between design and run time). Use the NSScreen class to find out the size of the screen and set the size of the window to an appropriate size when you display it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.