Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pixel Size




On Sep 28, 2006, at 11:55 PM, Gerriet M. Denkmann wrote:


On 28 Sep 2006, at 14:37, Dmitry Savenok wrote:

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

Thanks very much. But, as you certainly know, the size of a pixel is computed as
screen width in mm / screen width in pixels and screen height in mm / screen height in pixels.


So the next question: How do I get the screen dimensions in mm (or any other length unit) ?

Or, if this is not possible: How can I get at least some unique identifier for an NSScreen (like "display of 12 inch G4 iBook" or: "Apple Studio Display Model xxx") ?

In Google... "screen dpi site:developer.apple.com"

First hit: <http://developer.apple.com/qa/qa2001/qa1217.html>

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Pixel Size (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Pixel Size (From: "Dmitry Savenok" <email@hidden>)
 >Re: Pixel Size (From: "Gerriet M. Denkmann" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.