I have a window that should have dynamic height. I have drawn the window in the Interface Builder, and after the calculations in code I try to set the height. It should be also on the same position on the desktop. I use the following code to do that.
[myWin setFrame:NSMakeRect(myWin.frame.origin.x,
myWin.frame.origin.y - (yPos+2*MARGIN_CONST - myWin.frame.size.height),
myWin.frame.size.width,
yPos+2*MARGIN_CONST)
display:YES];
The window is a borderless window. When I print the frame before and after, it seems as it has taken the new values, but the window is cut from the top and it has the same height as before (now I see the controlls on the bottom of the window, but those on the top are cut). Any ideas?
Thank you very much.