• 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: Window resizing autolayout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window resizing autolayout?


  • Subject: Re: Window resizing autolayout?
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 23 Dec 2012 23:28:40 -0800

On Sun, Dec 23, 2012, at 11:25 PM, Quincey Morris wrote:
> It seems to me that changing the UI elements in awakeFromNib probably
> isn't enough, since that doesn't tell the layout system that something
> has changed.

Changing the text of a label will cause it to call [self
invalidateIntrinsicContentSize], which will ensure a layout pass happens
on the next window update.

My hunch is that NSPopover manually manages the size of its window to
match is contentSize, and it doesn't do so using constraints (or if it
does, those constraints have mandatory priority).

--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: Window resizing autolayout?
      • From: Antonio Nunes <email@hidden>
References: 
 >Window resizing autolayout? (From: Antonio Nunes <email@hidden>)
 >Re: Window resizing autolayout? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Low-level text, why so hard?
  • Next by Date: Re: NSPopover will not morph or resize
  • Previous by thread: Re: Window resizing autolayout?
  • Next by thread: Re: Window resizing autolayout?
  • Index(es):
    • Date
    • Thread