• 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: Pixel Size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pixel Size


  • Subject: Re: Pixel Size
  • From: "Dmitry Savenok" <email@hidden>
  • Date: Thu, 28 Sep 2006 15:37:20 +0300
  • Organization: Eltima

try this
width = [[[[_window screen] deviceDescription] objectForKey:NSDeviceSize] sizeValue].width;
height = [[[[_window screen] deviceDescription] objectForKey:NSDeviceSize] sizeValue].height;
width, height - screen size in pixels


Is there a way to get the size of a pixel (or dpi) of an NSScreen?

I am NOT interested in [NSScreen deviceDescription] which - obviously without making any real effort of getting at the truth - just returns an arbitrary value of 72 dpi for all screens.

So: is there some function somewhere which really tells the truth about screen resolution?

Gerriet.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Pixel Size
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Pixel Size (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Pixel Size
  • Next by Date: Re: Re: Binding to a Singleton
  • Previous by thread: Pixel Size
  • Next by thread: Re: Pixel Size
  • Index(es):
    • Date
    • Thread