Window 'onscreen' size puzzle

Posted by Bender on Stack Overflow See other posts from Stack Overflow or by Bender
Published on 2010-03-13T02:03:53Z Indexed on 2010/03/13 2:07 UTC
Read the original article Hit count: 349

Okay, a REALLY fundamental question about window sizes here...

If I create an NSWindow in IB, set its size to 216 x 144 points (exactly 3 inches by 2 inches) then print the window, it measures exactly what I set it to in IB. However, the onscreen display size measures approximately 156 x 105 points.

What causes this, and is there any way to force the window to display at the required size onscreen? I ultimately want to draw to this (semi-transparent) window then use it as a full-sized overlay for comparison against a separately loaded scanned image of known size.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about interface-builder