Re: Get screen size
Re: Get screen size
- Subject: Re: Get screen size
- From: Bertrand Mansion <email@hidden>
- Date: Mon, 14 Jan 2002 14:32:27 +0100
>
FROM: Sam Goldman
>
DATE: 2002-01-14 11:45
>
RTM, NSScreen.
>
NSRect *screenRect = [[NSScreen mainScreen] frame] // NSRect for screen
>
You can get the width and height with screenRect.size.width and
>
screenRect.size.height
Thanks. It will compile if I take off the *.
But my problem was actually caused by the NSLog :)
Height and Width are expressed as floats. I didn't know.
Bertrand Mansion