Forum Xamarin Xamarin.iOS


skylarkskylark JPMember

Hi, all.

I think Xamarin.Mac is not support NSComboBoxDelegate.
How can i catch "comboboxSelectionDidChange"?


  • rjmrjm CAMember ✭✭✭

    You can use the WeakDelegate property. e.g.

    myComboBox.WeakDelegate = new Delegate();
    private class Delegate : NSObject
        // - (void)comboBoxSelectionDidChange:(NSNotification *)notification
        public void SelectionDidChange(NSNotification notification)
            var sender = notification.Object as NSComboBox;
  • skylarkskylark JPMember

    it works. thank you once again!

Sign In or Register to comment.