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

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to