• 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: How can i change a app position and size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i change a app position and size?


  • Subject: Re: How can i change a app position and size?
  • From: Diego Alvarez Nogueira <email@hidden>
  • Date: Tue, 02 Aug 2011 18:29:58 -0300

Thank you,

But i have one more doubt:

How can i get the WindowID(window number) using AXUIElementRef? There is a way to get this?

AXUIElementRef element =  AXUIElementCreateApplication(pid);

Thanks!

On 27/07/2011, at 13:30, David Duncan wrote:

> On Jul 26, 2011, at 6:14 PM, Diego Alvarez Nogueira wrote:
>
>> 1)Why do I have some differences in get bounds between cocoa and applescript? for instance: on 'originString' and 'sizeString' are returned({1920,106,1280,800}) and with applescript ("set _bounds to get bounds of window window_number") are returned ({1920, 106, 3200, 906}).
>
>
> This is probably a holdover from the classic Mac OS days when rectangles were described as left/top/right/bottom. Core Graphics describes rectangles as left/top/width/height instead, which is what you are seeing from the CGWindow API.
> --
> David Duncan
>



--
Atenciosamente,

Diego Alvarez Nogueira
Blog: http://diegonogueira.com.br | http://papoinformal.com
Skype: nogueiradiego
Twitter: @nogueiradiego

_______________________________________________

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

  • Prev by Date: Re: [Solved] Section header artifacts in popover
  • Next by Date: Re: Debugging "CGImageCreate: invalid image provider: NULL"?
  • Previous by thread: Re: [Solved] Section header artifacts in popover
  • Next by thread: Re: Debugging "CGImageCreate: invalid image provider: NULL"?
  • Index(es):
    • Date
    • Thread