NSComboBox fails to notify delegate?

  • Hi All,

    My NSViewController is the delegate of five different combo boxes in its view but the delegate methods are not being called. They do get called sometimes, but usually they do not. I haven't found exactly what the situation is where the delegate methods get called. I implement comboBoxWillPopUp: and comboBoxWillDismiss: to disable the default button so that the user can tab to the combo, use the keyboard to make a selection, and hit Return to select an item without firing the default button's action.

    I have checked that my instance is the delegate and responds to the delegate methods. I even subclassed NSComboBox to override mouseDown: to see what the backtrace shows and what I see is that when it works, a notification is sent, when it fails, the notification is not sent.

    Does anyone have any idea about what I could be doing wrong? It's killing me for two reasons. One is that I do this in a few other places that use combo boxes and the other is that there is no other way to do it. I have to know when the combo pops up and dismisses and those methods are not public.

    If anyone can point me in the right direction, I'll really appreciate it.

    Thanks
    Marc
previous month july 2012 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today