Skip to content

Instantly share code, notes, and snippets.

@rentzsch
Created January 6, 2012 00:35
Show Gist options
  • Save rentzsch/1568207 to your computer and use it in GitHub Desktop.
Save rentzsch/1568207 to your computer and use it in GitHub Desktop.
// 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