public NSTextField AddTextFieldWithIdentifierSuperView(NSString identifier, NSView superview) { NSTextField textField = new NSTextField (); textField.Identifier = identifier; textField.Cell.ControlSize = NSControlSize.NSSmallControlSize; textField.IsBordered = true; textField.IsBezeled = true; textField.IsSelectable = true; textField.IsEditable = true; textField.Font = NSFont.SystemFontOfSize (11); textField.AutoresizingMask = NSAutoresizingMask.NSViewMaxXMargin | NSAutoresizingMask.NSViewMinYMargin; textField.TranslatesAutoresizingMaskIntoConstraints = false; superview.AddSubview (textField); return textField.Autorelease<NSTextField> (); }