Re: A bug with NSWindow's convertBaseToScreen: method ?
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