Re: NSWindow setFrame:display: ceiling behavior?
Re: NSWindow setFrame:display: ceiling behavior?
- Subject: Re: NSWindow setFrame:display: ceiling behavior?
- From: Arbit Richardi <email@hidden>
- Date: Sat, 27 Aug 2011 19:00:39 -0700
On Sat, Aug 27, 2011 at 12:31 AM, Nick Zitzmann <email@hidden> wrote:
>
> On Aug 25, 2011, at 2:36 PM, Arbit Richardi wrote:
>> Is there another method that will
>> draw windows at non-whole number point sizes?
>
> No. What are you trying to accomplish?
Cocoa has no problem at all drawing *views* with non-whole point
sizes, but it forces windows to be whole point sizes. As far as I can
tell, this behavior is undocumented, so I thought I'd ask about it
here. In my case, I was surprised to sometimes see cracks between the
edge of a view and its enclosing window frame or title bar, but it's
not a big deal — I can just round my view sizes up to whole point
values.
>> Is this behavior the
>> same on higher-resolution devices?
>
> Maybe. Did you try it? You can see for yourself by running Quartz Debug and choosing
> "UI resolution" in the Window menu.
I tried it, and the answer is yes. Using Quartz Debug, windows are
rounded up to whole-point sizes at all scale factors (up to 216 DPI).
_______________________________________________
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