Re: placing a window in the top left corner
Re: placing a window in the top left corner
- Subject: Re: placing a window in the top left corner
- From: Joseph Crawford <email@hidden>
- Date: Wed, 19 Nov 2008 09:52:43 -0500
Wouldn't the point just be 0, 0 in that case?
I'm a beginner so I am not positive.
On Nov 19, 2008, at 9:47 AM, Nick Rogers wrote:
Hi,
whenever my app opens a second preview window, I want it to be
positioned at the top left corner of the desktop screen.
I have come across two methods in NSWindow, they are:
– setFrameTopLeftPoint:
and
– cascadeTopLeftFromPoint:
But these require a point as input.
How do I calculate this point?
Also if the user has the dock vertical on the left side, how do I
adjust for that?
What if the user has different resolution like 800x600?
Thanks,
Nick_______________________________________________
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