-
Notifications
You must be signed in to change notification settings - Fork 517
/
Copy pathconcurrentcat_category.m
70 lines (63 loc) · 1.15 KB
/
concurrentcat_category.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include <stdio.h>
#include <objc/runtime.h>
#import <Foundation/Foundation.h>
@interface TargetClass : NSObject
@end
@interface TargetClass(LoadedMethods)
- (void) m0;
- (void) m1;
- (void) m2;
- (void) m3;
- (void) m4;
- (void) m5;
- (void) m6;
- (void) m7;
- (void) m8;
- (void) m9;
- (void) m10;
- (void) m11;
- (void) m12;
- (void) m13;
- (void) m14;
- (void) m15;
@end
@interface TN:TargetClass
@end
@implementation TN
- (void) m1 { [super m1]; }
- (void) m3 { [self m1]; }
- (void) m2
{
[self willChangeValueForKey: @"m4"];
[self didChangeValueForKey: @"m4"];
}
- (void)observeValueForKeyPath:(NSString *) keyPath
ofObject:(id)object
change:(NSDictionary *)change
context:(void *)context
{
// suppress warning
(void)keyPath;
(void)object;
(void)change;
(void)context;
}
@end
@implementation TargetClass(LoadedMethods)
- (void) m0 { ; }
- (void) m1 { ; }
- (void) m2 { ; }
- (void) m3 { ; }
- (void) m4 { ; }
- (void) m5 { ; }
- (void) m6 { ; }
- (void) m7 { ; }
- (void) m8 { ; }
- (void) m9 { ; }
- (void) m10 { ; }
- (void) m11 { ; }
- (void) m12 { ; }
- (void) m13 { ; }
- (void) m14 { ; }
- (void) m15 { ; }
@end