Created
February 16, 2019 14:52
-
-
Save amichnia/a5dd735cb5b114a295df742ca77674ff to your computer and use it in GitHub Desktop.
This file contains 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
// MyPrivateClass.m | |
#import "MyPrivateClass.h" | |
@implementation MyPrivateClass | |
@synthesize privateProperty; | |
+ (void)load { | |
// This is called once, when module is being loaded, | |
// "Invoked whenever a class or category is added to the Objective-C | |
// runtime; implement this method to perform class-specific behavior | |
// upon loading." | |
[Factory registerPrivateClassTypeWithType:[MyPrivateClass class]]; | |
} | |
- (void)doSomethingInternalWithSecretAttribute:(NSInteger)attribute { | |
NSLog(@"INTERNAL METHOD CALLED WITH SUCCESS %ld", (long)attribute); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment