Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading to Xcode 5.0.2: xib warning. Attribute Unavailable

I recently upgraded to xcode 5.0.2

Now, I'm getting this warning when I build my Cocoa app:

Attribute Unavailable Use Current Width For Max Layout Width on Mac OS X version prior to 10.8

I tried to locate 'Max Layout Width' but I wasn't able to.

How do I get rid of this warning?

like image 342
user1884325 Avatar asked Nov 20 '13 18:11

user1884325


2 Answers

In Xcode 5.1, uncheck the "First Runtime Layout Width" checkbox in the NSTextField's attributes inspector to remove the warning.

like image 91
Danra Avatar answered Nov 12 '22 19:11

Danra


markhunte's answer should give you the background, but in my case there simply wasn't a checkbox for Use First Layout Width As Max for any of my controls. However, in the .xib one text label had:

setsMaxLayoutWidthAtFirstLayout="YES"

Setting it to NO gets rid of the warning.

like image 27
MagerValp Avatar answered Nov 12 '22 19:11

MagerValp