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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
