Re: Points
Re: Points
- Subject: Re: Points
- From: Ryan Brown <email@hidden>
- Date: Sun, 8 Apr 2007 16:54:15 -0700
Would a more accurate definition of points be that they are mapped to
pixels except when the scaling factor has been changed from 1.0? In
the case where the scaling factor has been changed, the resolution
reported by [NSScreen frame] stays the same, so the dimensions of a
pixel is what is changing when you modify the scaling factor, correct?
On Apr 8, 2007, at 3:24 PM, j o a r wrote:
On 8 apr 2007, at 23.04, Ryan Brown wrote:
-[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.
If you think that the documentation is incorrect, or that it needs
to be improved, you need to file enhancement requests to Apple! The
documentation department is probably where you have your best
chance at quickly seeing your filed cases resolved, so don't hold
back!
Other links that might be of interest to you:
<http://developer.apple.com/qa/qa2001/qa1217.html>
<http://www.cocoabuilder.com/archive/message/cocoa/2006/9/28/171923>
j o a r
_______________________________________________
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>) |
| >Re: Points (From: Ryan Brown <email@hidden>) |
| >Re: Points (From: j o a r <email@hidden>) |