• 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: 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


References: 
 >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>)

  • Prev by Date: Re: layout method not getting called on Content View
  • Next by Date: Re: Help with Swift changes to optionals
  • Previous by thread: Re: layout method not getting called on Content View
  • Next by thread: Help with Swift changes to optionals
  • Index(es):
    • Date
    • Thread