Robert Kang
Robert Kang

Reputation: 568

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.

Upvotes: 5

Views: 1644

Answers (2)

Yang
Yang

Reputation: 56

Seaid's solution works. but i think it's bug because the auto sizing tool will apear about half a second when switching to another inspector.

Xcode 4 interface-builder problems

Upvotes: 4

Saeid
Saeid

Reputation: 493

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

Upvotes: 12

Related Questions