I have a window, which I set setContentBorderThickness:42 forEdge:NSMinYEdge.
Now, when I do [[window contentSize] frame] it still shows the dimensions of the window (minus the top bar with title and buttons), but it wont subtract the 42 of the border thickness.
Please, how do I get the proper dimensions of the empty area?
You should use not
contentSizebutcontentView. And if You use 42 pixels height BorderThickness than just subtract that height from Your window view’s height like this: