..
#gamedev

Retrieve Window Size in MacOS

The way to retrieve the window size in MacOS is through the NSWindow.

The object has a property contentView that represents a View with the window bounds.

See some example:

NSWindow *window = //... window initialization
int width  = window.contentView.bounds.size.width;
int height = window.contentView.bounds.size.height;