How can I set the window size programmatically? I have a window in IB and I want to set the size of it in my code to make it larger.
It is actually seems that +/- need to be reversed to keep window from moving on the screen:
NSRect frame = [window frame];
frame.origin.y += frame.size.height; // origin.y is top Y coordinate now
frame.origin.y -= theSizeYouWant.height; // new Y coordinate for the origin
frame.size = theSizeYouWant;