mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
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:
parent
f725acae39
commit
61e4a40589
5 changed files with 10 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -188,7 +188,7 @@
|
|||
NSView *cv = [self controlView];
|
||||
|
||||
[self highlight: YES withFrame: [cv frame] inView: cv];
|
||||
if (action && target)
|
||||
if (action)
|
||||
{
|
||||
NS_DURING
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1100,7 +1100,7 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
|
|||
|
||||
|
||||
- (BOOL) sendAction: (SEL)theAction
|
||||
to: (id)theTarget
|
||||
to: (id)theTarget
|
||||
{
|
||||
if (theAction)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue