• 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: Repositioning another app's windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repositioning another app's windows?


  • Subject: Re: Repositioning another app's windows?
  • From: Lee Ann Rucker <email@hidden>
  • Date: Sat, 28 Jul 2012 21:48:35 -0700 (PDT)

Use Accessibility. There's a utility called Moom that does that. That's the only way an outside app can move some of my windows, because the window positioning code path is convoluted - consider just what's involved in moving a window whose position comes from the OS inside a virtual machine.

Even normal apps may get confused at a move that doesn't come in via expected channels.

----- Original Message -----
From: "Rick Mann" <email@hidden>
To: "Cocoa-Dev List" <email@hidden>
Sent: Saturday, July 28, 2012 7:50:00 PM
Subject: Repositioning another app's windows?

Hi. I frequently add and remove external monitors from my laptop. Each time I do this, the windows all get rearranged.

I wonder if it's not possible to write an agent that listens for screen geometry changes, and repositions app windows in the right place each time a monitor is added or removed.

If this utility already exists, I'd love to hear about it. If not, is there a reliable way to get at all the windows currently instantiated, and determine which they are? I've looked briefly at the accessibility APIs, and that might do the trick. But I wonder if there's not another way I should consider.

I know I can listen for screen geometry changes, I've done it before (gonna have to dig up that code).

Thanks!

--
Rick




_______________________________________________

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
_______________________________________________

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: Repositioning another app's windows?
      • From: Jerry Krinock <email@hidden>
References: 
 >Repositioning another app's windows? (From: Rick Mann <email@hidden>)

  • Prev by Date: Repositioning another app's windows?
  • Next by Date: searching through all user accounts
  • Previous by thread: Repositioning another app's windows?
  • Next by thread: Re: Repositioning another app's windows?
  • Index(es):
    • Date
    • Thread