@selector - jedno z wielu słów kluczowych w Objectice-J, ma na celu utworzenie identyfikatora metody..
SEL - jest nazwa typu parametru , którym jest selector
id - jest to parametr określający obiekt Objective-J
@implementation SelectorExample: CPObject { SEL _action; } - (void)setAction:(SEL)anAction { _action = anAction; } - (SEL)action { return _action; } - (void)setTarget:(id)aTarget { _target = aTarget; } - (id)target { return _target; } - (void)sendAction:(SEL)anAction to:(id)anObject { // Singleton 'CPApp' wysyła akcię to obiektu [CPApp sendAction:anAction to:anObject from:self]; } - (void)performAction:(id)sender { [self sendAction:[self action] to:[self target]]; } @end