• 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: A bug with NSWindow's convertBaseToScreen: method ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bug with NSWindow's convertBaseToScreen: method ?


  • Subject: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 18 Apr 2007 16:32:51 -0500


On Apr 18, 2007, at 6:02 AM, Ricky Sharp wrote:

I think I then sprinkled in one or two more lines to make it resolution-independent savvy. Start with the above though and if you're still having issues, I'll look at my code this afternoon.

Actually, it was a few more lines of code. Make sure you test your solution with a scaling factor other than 1.0. You can do this starting in Tiger using QuartzDebug (Tools | Show User Interface Resolution).


The thing that was a bit tricky was understanding which methods give you an already scaled rect and which ones do not. For example, convertRect:toView: can returned a scaled rect whereas [someView bounds] does not. Once you get that right, your overlay window will appear correctly no matter what the scaling factor is.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >A bug with NSWindow's convertBaseToScreen: method ? (From: Mike Zornek <email@hidden>)
 >Re: A bug with NSWindow's convertBaseToScreen: method ? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Moderator EOT [Re: guilty for asking questions?]
  • Next by Date: Re: Convert HTML to plain text
  • Previous by thread: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Next by thread: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Index(es):
    • Date
    • Thread