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

Re: Points


  • Subject: Re: Points
  • From: j o a r <email@hidden>
  • Date: Mon, 9 Apr 2007 00:24:36 +0200


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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Points
      • From: Ryan Brown <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>)

  • Prev by Date: Re: Current Hour & Minutes
  • Next by Date: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Previous by thread: Re: Points
  • Next by thread: Re: Points
  • Index(es):
    • Date
    • Thread