Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fixing NSWindow size?

How can we fix the size of NSWindow so that user should not be able to resize it jus by dragging it with mouse or is there a way so that all the subviews window resizes when users changes the size of window , actually the problem is that when user changes size ofwindow , subviews do not resizses thats i wanted to lock window resizing?

like image 381
Sid Avatar asked Feb 25 '23 16:02

Sid


1 Answers

I may be missing the point here (and a bit late), but can you not set the 'constraints' options on the window itself?

If the min and max sizes are the same, it prevents resizing.

enter image description here

like image 196
Garry Avatar answered Mar 08 '23 09:03

Garry