]>
Commit | Line | Data |
---|---|---|
a645023d A |
1 | #include <Foundation/Foundation.h> |
2 | ||
3 | @interface Foo : NSObject | |
4 | -(void) method1; | |
5 | @end | |
6 | ||
7 | #if PROTOCOLS | |
8 | @protocol myotherprotocol | |
9 | - (void) instance_method_myotherprotocol1; | |
10 | - (void) instance_method_myotherprotocol2; | |
11 | @end | |
12 | ||
13 | @interface Foo(myothercat) < myotherprotocol > | |
14 | - (void) instance_method_myothercat; | |
15 | + (void) class_method_myothercat; | |
16 | @end | |
17 | ||
18 | @implementation Foo(myothercat) | |
19 | - (void) instance_method_myothercat {} | |
20 | + (void) class_method_myothercat {} | |
21 | - (void) instance_method_myotherprotocol1 {} | |
22 | - (void) instance_method_myotherprotocol2 {} | |
23 | @end | |
24 | ||
25 | #else | |
26 | @interface Foo(myothercat) | |
27 | - (void) instance_method_myothercat; | |
28 | + (void) class_method_myothercat; | |
29 | @end | |
30 | ||
31 | @implementation Foo(myothercat) | |
32 | - (void) instance_method_myothercat {} | |
33 | + (void) class_method_myothercat {} | |
34 | @end | |
35 | #endif | |
36 | ||
37 |