Skip to content

Instantly share code, notes, and snippets.

@McZonk
Created August 28, 2015 13:02
Show Gist options
  • Save McZonk/cbc0d6c838bef23c1dcc to your computer and use it in GitHub Desktop.
Save McZonk/cbc0d6c838bef23c1dcc to your computer and use it in GitHub Desktop.
__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