Permalink
Browse files

Fix the BK auto-delegate setter not being called in the function-base…

…d implementors.

Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
  • Loading branch information...
1 parent 5aa216e commit 0519c5bb1c9bc2c9cfa1f186f3c0254b16a3b292 @zwaldowski zwaldowski committed Apr 23, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 A2BlockDelegate.m
View
@@ -406,6 +406,9 @@ static void a2_blockPropertySetter(NSObject *self, SEL _cmd, id block)
SEL selector = NULL;
if (!a2_informationForBlockProperty(self.class, _cmd, &protocol, &selector))
return;
+
+ if ([self respondsToSelector:@selector(a2_checkRegisteredProtocol:)])
+ [self performSelector:@selector(a2_checkRegisteredProtocol:) withObject:protocol];
[[self dynamicDelegateForProtocol: protocol] implementMethod: selector withBlock: block];
}

0 comments on commit 0519c5b

Please sign in to comment.