From 8e82e5c3b9379e4a83064ace4f9240f5e0025aa6 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sun, 14 Oct 2001 21:36:12 +0000 Subject: [PATCH] Added methods [setAction:] and [setTarget:], which call the super implementation and also update the menu. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11142 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPopUpButtonCell.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/NSPopUpButtonCell.m b/Source/NSPopUpButtonCell.m index 55eb0f99e..591b88e55 100644 --- a/Source/NSPopUpButtonCell.m +++ b/Source/NSPopUpButtonCell.m @@ -593,6 +593,18 @@ static NSImage *_pbc_image[2]; return s; } +- (void) setAction: (SEL)aSelector +{ + [super setAction: aSelector]; + [_menu update]; +} + +- (void) setTarget: (id)anObject +{ + [super setTarget: anObject]; + [_menu update]; +} + // // NSCoding protocol //