• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get screen size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Get screen size
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Database
  • Next by Date: Re: Setting global umask
  • Previous by thread: Re: Get screen size
  • Next by thread: Re: Get screen size
  • Index(es):
    • Date
    • Thread