PopupMenu takes two clicks to release (Solution)
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