Added performClickWithFrame:inView: to NSCell

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19005 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
qmathe 2004-04-02 21:34:37 +00:00
parent 2dd9882247
commit ac458d3e00
9 changed files with 82 additions and 61 deletions

View file

@ -1081,13 +1081,19 @@
[(NSView *)[event userData] setNeedsDisplay: YES];
}
- (void) performClick: (id)sender
/**
* Simulates a single mouse click on the button cell. This method overrides the
* cell method performClickWithFrame:inView: to add the possibility to play a sound
* associated with the click.
*/
- (void) performClickWithFrame: (NSRect)cellFrame inView: (NSView *)controlView
{
if (_sound != nil)
{
[_sound play];
}
[super performClick: sender];
[super performClickWithFrame: cellFrame inView: controlView];
}
/*