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