• 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: Custom layout and constraints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom layout and constraints


  • Subject: Re: Custom layout and constraints
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 21 Sep 2014 11:18:21 -0500

On Sep 21, 2014, at 9:10 AM, Allan Odgaard <email@hidden> wrote:

> I am overriding `NSView`’s `layout` method to manually place one of my subviews.

> The problem seems to be that `layoutSubtreeIfNeeded` calls `resizeWithOldSuperviewSize:` (using the containing view’s size), but regardless of what’s passed to the view, it’ll set the entire frame and using values from its constraints (falling back to zero if there isn’t any).

Does it still do that if the superview has autoresizesSubviews set to NO?

Regards,
Ken


_______________________________________________

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: Custom layout and constraints
      • From: Allan Odgaard <email@hidden>
References: 
 >Custom layout and constraints (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Custom layout and constraints
  • Next by Date: Re: Writing, then reading JSON
  • Previous by thread: Re: Custom layout and constraints
  • Next by thread: Re: Custom layout and constraints
  • Index(es):
    • Date
    • Thread