• 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
PopupMenu takes two clicks to release (Solution)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PopupMenu takes two clicks to release (Solution)


  • Subject: PopupMenu takes two clicks to release (Solution)
  • From: Sanford Selznick <email@hidden>
  • Date: Wed, 14 Jun 2006 08:24:28 -0700

At 7:48 AM -0700 6/14/06, Sanford Selznick wrote:
After the user dismisses the menu, the first click is completely ignored. The click is ignored no matter where the user clicks in the sheet.

This is a completely ridiculous solution, but it works (for now). I don't understand why a wasted click is required to awaken all the controls in the window, or why making the window key and/or making controls firstResponder does not work.


However, I can do the following in the action selector for the menu items and it works:

CGPostMouseEvent(upperLeftCorner, false, 1, true);
CGPostMouseEvent(upperLeftCorner, false, 1, false);

I hope someone can recommend a less ridiculous way to solve my PopupMenu problem. :-)

Should I give up on a pure Cocoa solution and just use PopupMenuSelect with a Carbon menu?

Thanks,
  Sanford

PS - dismissPopUp menu doesn't work either.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Friendly hint with Font Manager and IB. (Was: Re: Doc App - Errors closing an document.)
  • Next by Date: Re: Transparent white NSView
  • Previous by thread: Re: How to implement Saving a Currency Converter document using Cocoa bindings ?
  • Next by thread: Calculating Desktop Icon Positions
  • Index(es):
    • Date
    • Thread