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


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to