Fix for toolbar item's sending their views as senders for actions (should be the item itself).

Closes #493.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-02-22 00:49:35 -08:00
1 parent 7730aeb652
commit 1524f80418
1 file changed
+5
+5
View File
@@ -1095,6 +1095,11 @@ var TOP_MARGIN = 5.0,
[_labelField setTextShadowColor:[self FIXME_labelShadowColor]];
}
- (void)sendAction:(SEL)anAction to:(id)aSender
{
[CPApp sendAction:anAction to:aSender from:_toolbarItem];
}
- (void)observeValueForKeyPath:(CPString)aKeyPath
ofObject:(id)anObject
change:(CPDictionary)aChange