• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSComboBox fails to notify delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox fails to notify delegate?


  • Subject: NSComboBox fails to notify delegate?
  • From: Marc Respass <email@hidden>
  • Date: Mon, 09 Jul 2012 19:39:27 -0400

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 (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: "Capturing 'self' strongly in this block is likely to lead to a retain cycle"
  • Next by Date: Re: turning app into background app
  • Previous by thread: Re: Open Recent Menu
  • Next by thread: Field Editor told to replace range {0, NSUIntegerMax} : Range Exception
  • Index(es):
    • Date
    • Thread