This is a rather simple question and I'm sure it's not to hard, but the question is...
I have a NSpanel that is centered and then after the centering I need to do a transform to move the window down on the Y coordinate while maintaining the centered X coordinate.
Is NSAffineTransform the correct way to go about this and does anyone have an example or idea of what I would need to do in order to move that nspanel down. Thanks again all.
NSRect windowFrame = NSMakeRect(0, 0, 500, 100);
NSRect windowFrame2 = NSMakeRect(0, 100, 500, 150);
window = [[HUDWindow alloc] initWithContentRect:windowFrame
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];
[window setLevel:kCGDesktopWindowLevel + 1];
window2 = [[Mainbox alloc] initWithContentRect:windowFrame2
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];
[window2 setLevel:kCGDesktopWindowLevel + 1];
[window center];
[window2 center];
^ piece of code I have in my project