• 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: Accessibility API - moving and resizing windows (in one API call)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessibility API - moving and resizing windows (in one API call)


  • Subject: Re: Accessibility API - moving and resizing windows (in one API call)
  • From: John Clayton <email@hidden>
  • Date: Mon, 12 Nov 2007 21:54:08 +0100

Hi Manfred,

Thanks for the tip there - I tried it *immediately* :-) but no dice, it in fact appears to do nothing for me....... hmmmm... a nice try though. My program (as you probably guessed) is manipulating other processes' windows via the Accessibility API, and these two methods appear not to have the power to influence the window server. Shame.

I even tried leaving of the re-enabling of the updates, leaving the window server to do this automatically for me after the documented 1 second - in the hope that it was all timing related. No dice.

Thanks for the tip however.

--
John Clayton
http://www.coderage-software.com/

On 12/11/2007, at 2:55 PM, Manfred Schwind wrote:

I'd love to somehow say something like this:
* window server: do all the following stuff in one atomic op / begin transaction *


AXCALL_LOG( AXUIElementSetAttributeValue(_topLevelUIElement, kAXPositionAttribute, newLocRef) );

AXCALL_LOG( AXUIElementSetAttributeValue(_topLevelUIElement, kAXSizeAttribute, newSizeRef) );

* window server: end of stuff that I want done in one transaction / go do it now *

You could try to use NSDisableScreenUpdates() and NSEnableScreenUpdates(). I am not sure if this works in your case, because it's documented to disable screen updates for all windows belonging to the calling process, but as far as I understand you're trying to control the windows of other processes. But it may be worth a try.


Regards,
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.



_______________________________________________

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:
@mac.com


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


References: 
 >Accessibility API - moving and resizing windows (in one API call) (From: John Clayton <email@hidden>)
 >Re: Accessibility API - moving and resizing windows (in one API call) (From: Manfred Schwind <email@hidden>)

  • Prev by Date: Re: Change a NSMenu's shape?
  • Next by Date: Re: "(Not Responding)" problems in Leopard
  • Previous by thread: Re: Accessibility API - moving and resizing windows (in one API call)
  • Next by thread: compiler error related to 'save' method of NSUserDefaultsController
  • Index(es):
    • Date
    • Thread