Re: layout method not getting called on Content View
Re: layout method not getting called on Content View
- Subject: Re: layout method not getting called on Content View
- From: Dave <email@hidden>
- Date: Wed, 15 Apr 2015 21:17:47 +0100
> On 15 Apr 2015, at 21:02, Kyle Sluder <email@hidden> wrote:
>
> On Wed, Apr 15, 2015, at 02:41 PM, Dave wrote:
>> A bit more, I turned Auto Layout on and now the layout method gets
>> called, but it doesn’t set the Frame Rect correctly.
>>
>> I’m looping through the subviews and setting the frames of a couple of
>> NSViews, but the Frame doesn’t change?
>
> As documented, you shouldn't be setting frames with Auto Layout enabled.
> They'll get stomped on the next layout passed.
Yes, I realise that, I only turned on Auto-Layout to see what would happen, I want it off and I want to lay out the frame myself. When I turn it off, layout doesn’t get called.
_______________________________________________
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