in ComponentKit/Core/Action/CKAction.mm [53:69]
id CKActionBase::initialTarget(CKComponent *sender) const
{
switch (_variant) {
case CKActionVariant::RawSelector:
return sender;
case CKActionVariant::TargetSelector:
return _target;
case CKActionVariant::Responder:
return [_scopedResponderAndKey.responder responderForKey:_scopedResponderAndKey.key];
case CKActionVariant::Block:
RCCFailAssert(@"Should not be asking for target for block action.");
return nil;
case CKActionVariant::BlockWithIdentifier:
RCCFailAssert(@"Should not be asking for target for block action.");
return nil;
}
}