Created
August 28, 2015 13:02
-
-
Save McZonk/cbc0d6c838bef23c1dcc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__attribute__((objc_root_class)) @interface BaseClass | |
- (id)propertyListRepresentation __attribute__((objc_requires_super)); | |
@end | |
@implementation BaseClass | |
- (id)propertyListRepresentation | |
{ | |
return 0; | |
} | |
@end | |
@interface BracketSubclass : BaseClass | |
@end | |
@implementation BracketSubclass | |
- (id)propertyListRepresentation | |
{ | |
return [super propertyListRepresentation]; | |
} | |
@end | |
@interface DotSubclass : BaseClass | |
@end | |
@implementation DotSubclass | |
- (id)propertyListRepresentation | |
{ | |
return super.propertyListRepresentation; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment