placing a window in the top left corner
placing a window in the top left corner
- Subject: placing a window in the top left corner
- From: Nick Rogers <email@hidden>
- Date: Wed, 19 Nov 2008 20:17:21 +0530
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