Due to how the coordinates work in Cocoa, you will need to take a few extra steps to make this work:
NSRect windowFrame = [mWindow frame]; windowFrame.size.height += 100; windowFrame.origin.y -= 100; [mWindow setFrame:windowFrame display:YES];
Alternatively, you can use the setFrameOrigin: or setFrameTopLeftPoint: methods for NSWindow.
source share