mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-24 11:20:42 +00:00
Taking this out for now.
This commit is contained in:
@@ -103,7 +103,6 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
CGPoint _previousTrackingLocation;
|
||||
|
||||
CPString _toolTip;
|
||||
Function _actionFunction;
|
||||
}
|
||||
|
||||
+ (CPDictionary)themeAttributes
|
||||
@@ -152,7 +151,6 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
- (void)setAction:(SEL)anAction
|
||||
{
|
||||
_action = anAction;
|
||||
_actionFunction = nil;
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -180,19 +178,6 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
return _target;
|
||||
}
|
||||
|
||||
- (void)setActionFunction:(Function)aFunction
|
||||
{
|
||||
[self setTarget:self];
|
||||
[self setAction:@selector(performActionFunction:)];
|
||||
_actionFunction = aFunction;
|
||||
}
|
||||
|
||||
- (void)performActionFunction:(Object)sender
|
||||
{
|
||||
if (_actionFunction)
|
||||
_actionFunction(sender);
|
||||
}
|
||||
|
||||
/*!
|
||||
Causes \c anAction to be sent to \c anObject.
|
||||
@param anAction the action to send
|
||||
|
||||
Reference in New Issue
Block a user