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