• 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
Old-style coordinates vs new
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Old-style coordinates vs new
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: iTunes-like behaviour of NSButton with NSAlternateKeyMask
  • Next by Date: Re: iTunes-like behaviour of NSButton with NSAlternateKeyMask
  • Previous by thread: Re: Need list of apps that can open file type
  • Next by thread: Re: Old-style coordinates vs new
  • Index(es):
    • Date
    • Thread