Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
Created September 27, 2010 04:49
Show Gist options
  • Save norio-nomura/598619 to your computer and use it in GitHub Desktop.
Save norio-nomura/598619 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
@interface Oyakata : NSObject { int gakkari; }
@property int gakkari;
@end
@implementation Oyakata
@synthesize gakkari;
@end
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
Oyakata* oyakata = [[Oyakata alloc]init];
++ oyakata.gakkari;
[oyakata release];
[pool drain];
return 0;
}
@hirohitokato
Copy link

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment