Skip to content

Commit 046afbd

Browse files
committed
add todo list
1 parent f1a6607 commit 046afbd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

HardShell/Source/NSObject+HardShell.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
@implementation NSObject(HardShell)
1313

14+
/* TODO: 1. what if forwardInvocation: is rewritten by original class
15+
* 2. what if class_addMethod fails?
16+
*
17+
*/
1418
- (id)forwardingTargetForSelector:(SEL)aSelector {
1519

1620
NSString *originClass = NSStringFromClass([self class]);
@@ -29,7 +33,6 @@ - (id)forwardingTargetForSelector:(SEL)aSelector {
2933

3034
});
3135

32-
// TODO: what if class_addMethod fails?
3336
class_addMethod(stubClass, aSelector, imp, types);
3437
id stub = [[stubClass alloc] init];
3538

0 commit comments

Comments
 (0)