Re: kAXPositionAttribute and kAXSizeAttribute
Re: kAXPositionAttribute and kAXSizeAttribute
- Subject: Re: kAXPositionAttribute and kAXSizeAttribute
- From: Dan Messing <email@hidden>
- Date: Thu, 19 Jul 2007 10:39:56 -0500
// window rect's are flipped-y
rect.origin.y = [[NSScreen mainScreen] frame].size.height -
rect.origin.y - rect.size.height;
I think you probably want to use [[NSScreen screens] objectAtIndex:
0] instead of [[NSScreen mainScreen]. Someone correct me if I'm
wrong, but I think the screen containing the menu bar is the one with
the (0,0) origin, which will make flipping the y coordinate work
correctly. the mainScreen is not necessarily the screen with the menu
bar, but rather the screen with the key window (according to the docs).
Dan Messing
Stunt Software
http://stuntsoftware.com/
_______________________________________________
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