• 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
-layout not called after invoking -setNeedsLayout:YES
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-layout not called after invoking -setNeedsLayout:YES


  • Subject: -layout not called after invoking -setNeedsLayout:YES
  • From: Dave Keck <email@hidden>
  • Date: Tue, 10 Jul 2012 16:38:18 -1000

I'm overriding NSView's -layout method to arrange a grid of subviews.

I call [gridView setNeedsLayout: YES] when a new subview is added,
which usually results in -layout being called on gridView, but
intermittently -layout is not called (resulting in incorrect subview
positioning.) In contrast, I also call [gridView
setNeedsUpdateConstraints: YES], which always results in
-updateConstraints being called.

I've verified that nothing is calling [gridView setNeedsLayout: NO] by
overriding that method.

What would prevent -layout from being 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

  • Prev by Date: Re: Avoiding cyclic header imports
  • Next by Date: Instance not responding to selector
  • Previous by thread: Re: Avoiding cyclic header imports
  • Next by thread: Instance not responding to selector
  • Index(es):
    • Date
    • Thread