Created
January 6, 2012 00:35
-
-
Save rentzsch/1568207 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// https://twitter.com/rob_rix/status/155082958443786241 | |
// https://twitter.com/rob_rix/status/155083105739341824 | |
@interface ClassA : NSObject { | |
@private | |
int topSecretIvar; | |
} | |
- (void)publicMethod; | |
@end | |
@implementation ClassA | |
static void topSecretMethod(ClassA *self) { | |
self->topSecretIvar++; | |
} | |
- (void)publicMethod { | |
topSecretMethod(self); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment