Author: mlytwyn Date: Fri Mar 10 15:23:13 2017 New Revision: 40375 URL: http://svn.gna.org/viewcvs/gnustep?rev=40375&view=rev Log: Invoke 'menuWillOpen:' on delegate just prior to opening menu
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m?rev=40375&r1=40374&r2=40375&view=diff ============================================================================== --- libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m (original) +++ libs/gui/branches/gnustep_testplant_branch/Source/NSMenu.m Fri Mar 10 15:23:13 2017 @@ -568,8 +568,11 @@ - (void) _rightMouseDisplay: (NSEvent*)theEvent { - [[GSTheme theme] rightMouseDisplay: self - forEvent: theEvent]; + // Testplant-MAL-03102017: added... + // Notify delegate if it responds to selector... + if ([self delegate] && [[self delegate] respondsToSelector:@selector(menuWillOpen:)]) + [[self delegate] performSelector: @selector(menuWillOpen:) withObject: self]; + [[GSTheme theme] rightMouseDisplay: self forEvent: theEvent]; } @end _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs