Re: Bottom-edge constraint not enforced in IB but is in runtime?
Re: Bottom-edge constraint not enforced in IB but is in runtime?
- Subject: Re: Bottom-edge constraint not enforced in IB but is in runtime?
- From: Marc Respass <email@hidden>
- Date: Tue, 10 Jul 2012 12:22:30 -0400
Thanks a lot, Kevin. I didn't realize it was only for top-level objects; now I see it. It is correct that I should turn off translatesAutoresizingMaskIntoConstraints when using auto-layout?
Thanks again
Marc
El jul 10, 2012, a las 11:01 a.m., Kevin Cathey escribió:
> The default value of translatesAutoresizingMaskIntoConstraints for top level views in IB is YES on both Lion and Mountain Lion. But this can be disabled using the Attributes Inspector and uncheck "Translates Mask Into Constraints"
>
> Kevin
>
> On Jul 9, 2012, at 12:09 PM, Rick Mann <email@hidden> wrote:
>
>>
>> On Jul 9, 2012, at 7:57 , Marc Respass wrote:
>>
>>>> I'm also finding that NSSplitView's pane views seem to have the translatesAutoresizingMaskIntoConstraints property set to true by default, even when built strictly in IB. Is this correct? Xcode 4.3.2.
>>>
>>> Hi Rick,
>>>
>>> I really encourage you to watch all three WWDC 2012 videos on constraints. That will answer a lot of questions. Constraints are tricky for me and those sessions cleared up a lot of things including priorities. You'll watch someone setup constraints to do things that previously required a split view to handle.
>>
>> Well, see, this is the problem. I watched the first two videos (still have to watch the examples video), and IB and Lion are not behaving as advertised. According to the videos, if you're using constraints, the translates property should always be no (I may have misunderstood that). It should only be on for a NIB that isn't using autolayout, and in that case you can apply constraints in some places, and it'll apply them in others.
>>
>> But that's not what I'm seeing.
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden