Guest User

Untitled

a guest
Feb 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. // MyPrivateClass.m
  2. #import "MyPrivateClass.h"
  3.  
  4. @implementation MyPrivateClass
  5.  
  6. @synthesize privateProperty;
  7.  
  8. + (void)load {
  9. // This is called once, when module is being loaded,
  10. // "Invoked whenever a class or category is added to the Objective-C
  11. // runtime; implement this method to perform class-specific behavior
  12. // upon loading."
  13. [Factory registerPrivateClassTypeWithType:[MyPrivateClass class]];
  14. }
  15.  
  16. - (void)doSomethingInternalWithSecretAttribute:(NSInteger)attribute {
  17. NSLog(@"INTERNAL METHOD CALLED WITH SUCCESS %ld", (long)attribute);
  18. }
Add Comment
Please, Sign In to add comment