mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:10:38 +00:00
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:
parent
2dd9882247
commit
ac458d3e00
9 changed files with 82 additions and 61 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue