• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PopupMenu takes two clicks to release


  • Subject: PopupMenu takes two clicks to release
  • From: Sanford Selznick <email@hidden>
  • Date: Tue, 13 Jun 2006 22:05:18 -0700

I'm displaying a popup menu in mouseDownInHeaderOfTableColumn with:

NSPopUpButtonCell *popup = ... ;
[cell setMenu:myMenu];
[popup
  trackMouse:[NSApp currentEvent]
  inRect:rect
  ofView:headerView
  untilMouseUp:YES];
[cell release];

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.

I've tried setting the sheet to be the key with makeKeyWindow and tried to make various controls the firstResponder. Still, the first click after the menu is selected is ignored.

What am I missing?

Thank you,
  Sanford
_______________________________________________
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: Drawing text on top of a progress bar
  • Next by Date: Re: Drawing text on top of a progress bar
  • Previous by thread: Instant Messenger Framework finding current screen name
  • Next by thread: PopupMenu takes two clicks to release
  • Index(es):
    • Date
    • Thread