[Mono-osx] NeedsUpdateConstraints
thenextman
rmarkiewicz at devolutions.net
Mon Nov 26 17:28:59 UTC 2012
I'm using a custom NSView with AutoLayout. In Objective C, I can call:
[self setNeedsUpdateConstraints:YES];
To invalidate constraints and force an update.
I can't make this work with latest MonoMac. I see a property on NSView
(NeedsUpdateConstraints) but setting it to true has no effect.
Can anyone tell me what I'm doing wrong?
public partial class TestViewController : MonoMac.AppKit.NSView
{
#region Constructors
// snip constructors...
#endregion
public override void AwakeFromNib()
{
Console.WriteLine("awakeFromNib");
base.AwakeFromNib();
}
public override void UpdateConstraints()
{
Console.WriteLine("updateConstraints");
base.UpdateConstraints();
}
partial void Invalidate(NSObject sender)
{
this.NeedsUpdateConstraints = true; // doesn't work?
}
}
--
View this message in context: http://mono.1490590.n4.nabble.com/NeedsUpdateConstraints-tp4657534.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list