• 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: NSWindow setFrame:display: ceiling behavior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSWindow setFrame:display: ceiling behavior? (From: Arbit Richardi <email@hidden>)
 >Re: NSWindow setFrame:display: ceiling behavior? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Sample code using the new document model?
  • Next by Date: strategies for storing NSDocument additional meta-data
  • Previous by thread: Re: NSWindow setFrame:display: ceiling behavior?
  • Next by thread: strategies for storing NSDocument additional meta-data
  • Index(es):
    • Date
    • Thread