Placement of window using interface builder on different size displays
Placement of window using interface builder on different size displays
- Subject: Placement of window using interface builder on different size displays
- From: Development <email@hidden>
- Date: Sun, 28 Jun 2009 17:01:17 -0400
Surely this is a simple way of doing this? (Yes, and don't call me
Shirley).
We are creating a document based application that has various
inspector panels that need to come up in exact position when the user
first starts the application. Most importantly, there are several
windows that hug the top and side edges of the screen. I created the
windows using Interface Builder (IB), set their initial location, and
it worked fine for my screen. Then we gave it to some testers who are
running on something other then an iMac (with different screen
dimensions), and the inspector windows appeared all over the place.
Apparently, the position of the window, that is set using Interface
Builder is based on having the origin a the bottom left corner (ie.
Quartz style). What we want to do is set the initial position of the
window based on a top left (is. flipped) coordinate systems! This
puzzled me since there does not seem to be any way to tell the Window
manager to do this. There is no setting in the IB Inspector, nor is
there any methods to override.
I am betting this is something very simple, but I have never had to
require where a window come up before. Either the window is a document
window, and is tiled, or it is a dialog window, and needs to be
centered on the screen or document, or it does not matter.
Yes, I know I could at write code to programatically move the window
is the current position at initial startup, however this would require
hard coding each window to do this.
Help?!?
Steve Sheets
_______________________________________________
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