• 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 23:02:52 -0700

(Sorry, long day.  Correction below.)

I'm displaying a popup menu in mouseDownInHeaderOfTableColumn with:

NSPopUpButtonCell *cell =
  [[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO];
[cell setMenu:myMenu];
[cell
  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: Launch another app without losing focus
  • Next by Date: Embedding a color item in an NSTableView
  • Previous by thread: PopupMenu takes two clicks to release
  • Next by thread: Embedding a color item in an NSTableView
  • Index(es):
    • Date
    • Thread