From 1524f80418bf6ea5ea126b973f05aa3c04b0053a Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Mon, 22 Feb 2010 00:49:35 -0800 Subject: [PATCH] Fix for toolbar item's sending their views as senders for actions (should be the item itself). Closes #493. Reviewed by me. --- AppKit/CPToolbar.j | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AppKit/CPToolbar.j b/AppKit/CPToolbar.j index ff87aed74..e201f17c1 100644 --- a/AppKit/CPToolbar.j +++ b/AppKit/CPToolbar.j @@ -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