- [self setFrame:NSMakeRect( (SW_BORDER + [[self screen] visibleFrame].origin.x),
- (SW_BORDER + [[self screen] visibleFrame].origin.y),
+ if ( [self horizontalPosition] == ITWindowPositionLeft ) {
+ windowOrigin.x = ( SW_BORDER + screenOrigin.x );
+ } else if ( [self horizontalPosition] == ITWindowPositionCenter ) {
+ windowOrigin.x = ( screenOrigin.x + (screenWidth / 2) - (windowWidth / 2) );
+ } else if ( [self horizontalPosition] == ITWindowPositionRight ) {
+ windowOrigin.x = ( screenOrigin.x + screenWidth - (windowWidth + SW_BORDER) );
+ }
+
+ if ( [self verticalPosition] == ITWindowPositionTop ) {
+ windowOrigin.y = ( screenOrigin.y + screenHeight - (windowHeight + SW_BORDER) );
+ } else if ( [self verticalPosition] == ITWindowPositionMiddle ) {
+// Middle-oriented windows should be slightly proud of the screen's middle.
+ windowOrigin.y = ( (screenOrigin.y + (screenHeight / 2) - (windowHeight / 2)) + (screenHeight / 8) );
+ } else if ( [self verticalPosition] == ITWindowPositionBottom ) {
+ windowOrigin.y = ( SW_BORDER + screenOrigin.y );
+ }
+
+ [self setFrame:NSMakeRect( windowOrigin.x,
+ windowOrigin.y,