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: David Duncan <email@hidden>
- Date: Wed, 15 Apr 2015 14:17:21 -0700
> On Apr 15, 2015, at 2:06 PM, Dave <email@hidden> wrote:
>
>>
>> I recommend you switch to Auto Layout.
>
> AFAICT, Auto-Layout won’t let me do what I want to do.
>
> This is so simple. The NIB file is owned by the window controller. The window is a large window and initially has two frames in it. Later on, I get Notifications telling me a new position and size for the two Views.
The very minimal thing you could do in auto layout for this is as simple as specifying constraints for leading, trailing, width, and height – and you will get exactly what you want by setting the constraints as requested by your notification. This minimal change would do exactly what the frame setting you are trying to do would do.
> I just want set the frame on these two views so it reflects the data from the Notification. I can’t see how auto-layout will help me to do this? The Window can’t be resized and even it it were to be resized, I wouldn’t want anything in the window to change position or size.
>
> Thanks, All the Best
> Dave
>
>
> _______________________________________________
>
> 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
--
David Duncan
_______________________________________________
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