public NSButton AddPushButtonWithTitleIdentifierSuperView(NSString title, NSString identifier, NSView superview) { NSButton pushButton = new NSButton (); pushButton.Identifier = identifier; pushButton.BezelStyle = NSBezelStyle.NSRoundRectBezelStyle; pushButton.Font = NSFont.SystemFontOfSize (12); pushButton.AutoresizingMask = NSAutoresizingMask.NSViewMaxXMargin | NSAutoresizingMask.NSViewMinYMargin; pushButton.TranslatesAutoresizingMaskIntoConstraints = false; superview.AddSubview (pushButton); if (title != null) { pushButton.Title = title; } pushButton.Target = this; pushButton.Action = ObjectiveCRuntime.Selector ("shuffleTitleOfSender:"); return pushButton.Autorelease<NSButton> (); }