user762034
user762034

Reputation:

Disable window stretching Cocoa?

How do I disable the stretching of the window at the bottom right? I would have to deal with auto-sizing and all that stuff, which would be unnecessary if I simply didn't allow the user to stretch the window size.

Upvotes: 12

Views: 5663

Answers (2)

sudo rm -rf
sudo rm -rf

Reputation: 29524

First you should set the maximum width/height equal to the minimum width/height in IB:

enter image description here

Then you can disable the resize control by unchecking "Resize" in IB:

enter image description here

Upvotes: 18

iain
iain

Reputation: 5683

Select the window in Interface Builder and uncheck the "Resize" checkbox in the Attributes Inspector panel

Upvotes: 4

Related Questions