mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:10:37 +00:00
Add reverse value change methods for bindings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25935 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
efdf40b451
commit
ce957cc6e2
4 changed files with 88 additions and 154 deletions
|
@ -635,7 +635,8 @@ static NSNotificationCenter *nc;
|
|||
{
|
||||
if (_cell == aCell)
|
||||
{
|
||||
[_cell drawWithFrame: _bounds inView: self];
|
||||
[_cell drawWithFrame: _bounds
|
||||
inView: self];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -646,8 +647,8 @@ static NSNotificationCenter *nc;
|
|||
{
|
||||
if (_cell == aCell)
|
||||
{
|
||||
[_cell drawInteriorWithFrame: _bounds
|
||||
inView: self];
|
||||
[_cell drawInteriorWithFrame: _bounds
|
||||
inView: self];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -701,6 +702,13 @@ static NSNotificationCenter *nc;
|
|||
*/
|
||||
- (BOOL) sendAction: (SEL)theAction to: (id)theTarget
|
||||
{
|
||||
GSKeyValueBinding *theBinding;
|
||||
|
||||
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
|
||||
forObject: self];
|
||||
if (theBinding != nil)
|
||||
[theBinding reverseSetValueFor: @"objectValue"];
|
||||
|
||||
if (theAction)
|
||||
return [NSApp sendAction: theAction to: theTarget from: self];
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue