Skip to content

Instantly share code, notes, and snippets.

@wnoguchi
Created March 16, 2014 05:04
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 wnoguchi/9578791 to your computer and use it in GitHub Desktop.
Save wnoguchi/9578791 to your computer and use it in GitHub Desktop.
Objective-C sample.
#import <Foundation/Foundation.h>
#import "MyTestClass.h"
int main(int argc, const char * argv[])
{
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
NSLog(@"こんにちはー!!");
// MyTestClass *obj = [MyTestClass alloc];
// obj = [obj init];
MyTestClass *obj = [[MyTestClass alloc] init];
[obj setMessage:@"Hello, and GoodBye."];
[obj printMessage];
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment