diff --git a/Source/NSPopUpButton.m b/Source/NSPopUpButton.m index 683605a3e..0eced25fb 100644 --- a/Source/NSPopUpButton.m +++ b/Source/NSPopUpButton.m @@ -296,10 +296,14 @@ Class _nspopupbuttonCellClass = 0; { NSMenuView *mr = [[cell menu] menuRepresentation]; NSEvent *e; - + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + if ([self isEnabled] == NO) return; + [nc postNotificationName: NSPopUpButtonWillPopUpNotification + object: self]; + // Attach the popUp [cell attachPopUpWithFrame: bounds inView: self];