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 :.
source
share