Re: Points
Re: Points
- Subject: Re: Points
- From: Ryan Brown <email@hidden>
- Date: Sun, 8 Apr 2007 14:04:46 -0700
[[NSScreen mainScreen] frame] reports the resolution of the main
screen in points. Points are defined to be 1/72th of an inch.
-[NSScreen frame] returns the "dimensions" of your screen. Where do
you see that those are returned in points?
I don't see that it is returned in points, it the documentation only
says "dimensions" (which could be points or pixels) as you said.
However, [[NSScreen deviceDescription] objectAtKey:NSDeviceSize] is
described as "the device's current size in points", and since the two
values are equal I assumed that [NSScreen frame] is in points.
Read more about this here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaDrawingGuide/Transforms/chapter_4_section_2.html#//apple_ref/
doc/uid/TP40003290-CH204-DontLinkElementID_94>
I've read this and it is the source of my confusion. The only
conclusion I can come to is that the statement "A single unit in user
space is fixed at 1/72 of an inch, which is referred to as a
point." (under User Space) is not accurate. Otherwise [[NSScreen
deviceDescription] objectAtKey:NSDeviceSize] would not change as the
resolution changes; it would be a static figure representing the
screen size.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Points (From: Ryan Brown <email@hidden>) |
| >Re: Points (From: j o a r <email@hidden>) |