-
-
Save tedheich/858397 to your computer and use it in GitHub Desktop.
Simplistic Hello World program in objective C
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
#include <Foundation/Foundation.h> | |
@interface Hi:NSObject {} | |
- (void) hi; | |
@end | |
@implementation Hi | |
- (void) hi { | |
NSLog(@"Hi world\n"); | |
} | |
@end | |
int main(void) { | |
Hi *obj = [[Hi alloc] init]; | |
[obj hi]; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment