Search code examples
objective-ccocoamacoswindow

Setting the minimum and maximum size of a window


How does one set the maximum and minimum size of a window in OS X, using the Objective-C libraries?


Solution

  • [theWindow setMaxSize:windowMaxSize];
    [theWindow setMinSize:windowMinSize];
    

    NSWindow Class Reference