Old-style coordinates vs new
Old-style coordinates vs new
- Subject: Old-style coordinates vs new
- From: Scott Ribe <email@hidden>
- Date: Fri, 09 Feb 2007 12:29:45 -0700
- Thread-topic: Old-style coordinates vs new
I am trying to position a floating utility window near another application's
front window. I use AppleScript to get the active window's bounds, in
old-style QuickDraw coordinates. Now I can figure out how to flip those
around and calculate my window position just fine in the case of one screen.
What I'm having trouble with is: assuming multiple screens, how to figure
out which screen contains (most of) the other app's window? This can't be
hard, but I'm drawing a blank at the moment. (Carbon APIs no problem.)
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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