• 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
NSPopUpButtonCell causes UI to "sleep" when clicked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButtonCell causes UI to "sleep" when clicked


  • Subject: NSPopUpButtonCell causes UI to "sleep" when clicked
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 24 Apr 2009 05:41:48 -0700

I'm creating an NSPopUpButtonCell programatically.

To show the menu I invoke -[NSPopUpButtonCell performClickWithFrame:inView:]. It works -- however after the menu has popped up, been clicked and dismissed,

  - Timers in the main thread stop firing
  - Keyboard equivalents fail silently

Operation does not return to normal until the user clicks another control TWICE. It seems to me that the UI is "sleeping" and that the first click is necessary to "wake" it.

Is there a name for this state when the UI is "sleeping"? Maybe if I knew that I could research how to fix it. Of course, a fix would be appreciated too :)

I guessed that the popup menu may still be "tracking" the mouse (although I don't really know what that means). However, invoking - cancelTracking does not help.

Also, invoking -attachPopUpWithFrame:inView: before performClickWithFrame:: does not help either. (I've never been able to find an explanation of what -attachPopUpWithFrame:inView: is supposed to do. As far as I can see it's a no-op.)

Jerry Krinock



_______________________________________________

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


  • Follow-Ups:
    • Re: NSPopUpButtonCell causes UI to "sleep" when clicked
      • From: Peter Ammon <email@hidden>
    • Re: NSPopUpButtonCell causes UI to "sleep" when clicked
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: How to clone a mutable dictionary
  • Next by Date: Re: NSTableView variable row height and noteHeightOfRowsWithIndexesChanged during live resize
  • Previous by thread: Re: Best technology to use for overlays?
  • Next by thread: Re: NSPopUpButtonCell causes UI to "sleep" when clicked
  • Index(es):
    • Date
    • Thread