Send actions as we should

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4343 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-06-02 20:37:19 +00:00
parent f725acae39
commit 61e4a40589
5 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
Wed Jun 2 22:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSButtonCell.m: ([sendAction:to:]) should work with nil target.
* Source/NSCell.m: ([sendAction:to:]) should work with nil target.
* Source/NSControl.m: ([sendAction:to:]) should work with nil target.
Wed Jun 2 20:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSApplication.m: Send performKeyEquivalent messages.

View file

@ -188,7 +188,7 @@
NSView *cv = [self controlView];
[self highlight: YES withFrame: [cv frame] inView: cv];
if (action && target)
if (action)
{
NS_DURING
{

View file

@ -762,7 +762,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
NSView *cv = [self controlView];
[self highlight: YES withFrame: [cv frame] inView: cv];
if ([self action] && [self target])
if ([self action])
{
NS_DURING
{

View file

@ -361,7 +361,7 @@ static id _NSCONTROL_CELL_CLASS = nil;
{
NSApplication *theApp = [NSApplication sharedApplication];
if (theAction && theTarget)
if (theAction)
return [theApp sendAction: theAction to: theTarget from: self];
else
return NO;

View file

@ -1100,7 +1100,7 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
- (BOOL) sendAction: (SEL)theAction
to: (id)theTarget
to: (id)theTarget
{
if (theAction)
{