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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to