NSDrawer prevents resizing

Is there a way to prevent the resizing of NSDrawer? I tried setting the content size of Min and Max to the same value and no luck.

+3
source share
1 answer

Set up a delegate NSDrawer, which implements drawerWillResizeContents: toSize: . If the method simply returns [sender contentSize], the size of the contents of the box will not change.

If this does not interfere with changing the overall size of the box, your delegate may also need to implement windowWillResize: toSize: as indicated in the documentation link for drawerWillResizeContents :.

+6
source

Source: https://habr.com/ru/post/1735475/


All Articles