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: Fri, 17 Apr 2015 16:33:22 +0100
> On 16 Apr 2015, at 22:37, Quincey Morris <email@hidden> wrote:
>
> On Apr 16, 2015, at 13:54 , Dave <email@hidden <mailto:email@hidden>> wrote:
>>
>> I’m wondering if the call to super should happen before I mess with the Content View?
>
> From the NSWindowController documentation:
>
>> "The default implementation does nothing.”
>
> However, it’s probably better practice to put it at the top of your method.
Yes, I’m nearly always concerned I have it in the wrong place, it can cause havoc in some cases.
I changed my code to walk the view hierarchy and set the Frame at windowDidLoadl time and I can confirm it works wonderfully!
I may eventually adapt it to use constraints. I wish it were possible to apply Auto Layout out on some subview chains and Manual Layout on others, but it doesn’t seem possible?
Thanks a lot for your help, just knowing it *should* work is enough sometimes!
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