NSWindow setFrame:display: ceiling behavior?
NSWindow setFrame:display: ceiling behavior?
- Subject: NSWindow setFrame:display: ceiling behavior?
- From: Arbit Richardi <email@hidden>
- Date: Thu, 25 Aug 2011 13:36:58 -0700
Given the following code snip:
NSRect newFrame = [myWindow frame];
newFrame.size.width = 772.16;
[myWindow setFrame:newFrame display:YES];
NSLog(@"%f", [myWindow frame].size.width);
The output is: 773.000000, and in fact, the window is drawn 773 points
wide on my MacBook Pro.
Why do windows prefer whole points? Is there another method that will
draw windows at non-whole number point sizes? Is this behavior the
same on higher-resolution devices?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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