• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: layout method not getting called on Content View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: layout method not getting called on Content View


  • Subject: Re: layout method not getting called on Content View
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 15 Apr 2015 14:59:12 -0500

On Wed, Apr 15, 2015, at 01:47 PM, Dave wrote:
> Hi,
>
> I have a WindowController/Window Combo contained in a NIB.

Window controllers usually don't live in nibs. Instead, they act as the
nib's File's Owner.

> Auto Layout is
> turned off and I want to alter to positions and/or sizes of views inside
> the ContentView. I thought the obvious place to do this was layout, but
> it never seems to get called?

As documented, -layout is only called if Auto Layout is enabled or your
view is layer-backed.

>
> How can I manually lay out the Content View?

I recommend you switch to Auto Layout.

--Kyle Sluder
_______________________________________________

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


  • Follow-Ups:
    • Re: layout method not getting called on Content View
      • From: Dave <email@hidden>
References: 
 >layout method not getting called on Content View (From: Dave <email@hidden>)

  • Prev by Date: layout method not getting called on Content View
  • Next by Date: Re: layout method not getting called on Content View
  • Previous by thread: layout method not getting called on Content View
  • Next by thread: Re: layout method not getting called on Content View
  • Index(es):
    • Date
    • Thread