Skip to content

Instantly share code, notes, and snippets.

@amichnia
Created February 16, 2019 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amichnia/a5dd735cb5b114a295df742ca77674ff to your computer and use it in GitHub Desktop.
Save amichnia/a5dd735cb5b114a295df742ca77674ff to your computer and use it in GitHub Desktop.
// 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