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

Re: Screen Resolution and Screen Size


  • Subject: Re: Screen Resolution and Screen Size
  • From: m <email@hidden>
  • Date: Mon, 21 Nov 2005 23:20:44 -0800


On Nov 21, 2005, at 10:52 PM, j o a r wrote:


On 22 nov 2005, at 07.38, Rolando Sacramento wrote:

I creating an app that returns information with respect to the screen size. But the problem is, I do not how to get the screen size of the current machine, ex. 14" 15" , 17" or etc...
Is there a class that can be use to get this information?

I don't think that you can get hold of this information, because I'm pretty sure that it's not something that a connected monitor reports to the computer.
I'm sure that there are some cases when you could have this info - for example you could probably figure it out for machines from Apple with built-in LCD monitors based on the model of the machine - but in the general case I would be really surprised if you could.


So, while you can access the pixel dimensions of the monitor(s), I don't think that you can calculate their "real world" resolution in dpi/ppi.

Docs say that NSScreen's displayDescription method returns a dictionary that is supposed to have an entry (key: NSDeviceResolution) that describes the device's pixel density. You should be able to back calculate the screen's physical dimensions from that and the pixel dimensions.


_murat _______________________________________________
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: Screen Resolution and Screen Size
      • From: j o a r <email@hidden>
References: 
 >Screen Resolution and Screen Size (From: Rolando Sacramento <email@hidden>)
 >Re: Screen Resolution and Screen Size (From: j o a r <email@hidden>)

  • Prev by Date: Re: Screen Resolution and Screen Size
  • Next by Date: Re: NSURLConnection not reentrant?
  • Previous by thread: Re: Screen Resolution and Screen Size
  • Next by thread: Re: Screen Resolution and Screen Size
  • Index(es):
    • Date
    • Thread