Skip to content

Instantly share code, notes, and snippets.

@beelsebob
Created August 25, 2011 09:12
Show Gist options
  • Select an option

  • Save beelsebob/1170295 to your computer and use it in GitHub Desktop.

Select an option

Save beelsebob/1170295 to your computer and use it in GitHub Desktop.
// In the header
@interface MyClass : NSObject
@property (readwrite, assign) int a;
@end
// In a separate header that you include in all MyClass subclasses
@interface MyClass (Protected)
@property (readwrite, assign) int b;
@end
// In MyClass.m
@interface MyClass ()
@property (readwrite, assign) int c;
@end
@implementation MyClass
@synthesize ...
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment