Skip to content

Instantly share code, notes, and snippets.

@vkodocha
Created May 2, 2013 05:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkodocha/5500276 to your computer and use it in GitHub Desktop.
Save vkodocha/5500276 to your computer and use it in GitHub Desktop.
- (void) startForwarding:(id)sender {
for (NSInvocation *invocation in self.invocations) {
[invocation setTarget:sender];
[invocation invoke];
}
// We now need to also set the properties of the superclass
Class sc = [sender superclass];
while (sc != [NSObject class]) {
[(FLAppearance *)[FLAppearance appearanceForClass:sc] startForwardingInternal:sender];
sc = [sc superclass];
}
}
- (void) startForwardingInternal:(id)sender {
for (NSInvocation *invocation in self.invocations) {
[invocation setTarget:sender];
[invocation invoke];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment