-layout not called after invoking -setNeedsLayout:YES
-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