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:
fredkiefer 2008-01-13 18:08:35 +00:00
parent efdf40b451
commit ce957cc6e2
4 changed files with 88 additions and 154 deletions

View file

@ -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