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

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

  • Follow-Ups:
    • Re: NSWindow setFrame:display: ceiling behavior?
      • From: Nick Zitzmann <email@hidden>
    • Re: NSWindow setFrame:display: ceiling behavior?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Odd Versions behavior
  • Next by Date: Re: Block until block is called
  • Previous by thread: Odd Versions behavior
  • Next by thread: Re: NSWindow setFrame:display: ceiling behavior?
  • Index(es):
    • Date
    • Thread