Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Autosizing property setting for NSView is missing

I ran into this really frustrating issue today.

I want to set my view to be autosizing like this:

But all I find in my xcode settings for an NSView is like this:

The two screenshots are taken from two different projects with the same xcode 4.3.2. Is this a bug or am I missing something?

Thanks.

like image 996
Robert Kang Avatar asked May 25 '12 18:05

Robert Kang


1 Answers

Starting in Xcode 4.3 the xib files for Cocoa projects have auto layout turned on initially. When a xib file uses auto layout, there is no Autosizing section in the size inspector.

If you want to turn off auto layout, open the file inspector and deselect the Use Auto Layout checkbox. enter image description here

like image 132
Saeid Avatar answered Sep 20 '22 20:09

Saeid