• 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 15:02:50 -0500

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.

You might want to watch the introductory videos available at
apple.com/wwdc.

--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>
    • Re: layout method not getting called on Content View
      • From: Kyle Sluder <email@hidden>
References: 
 >layout method not getting called on Content View (From: Dave <email@hidden>)

  • Prev by Date: Re: 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