Skip to content

Instantly share code, notes, and snippets.

@simonwhitaker
Created January 18, 2011 16:09
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 simonwhitaker/784652 to your computer and use it in GitHub Desktop.
Save simonwhitaker/784652 to your computer and use it in GitHub Desktop.
Example of a simple Objective-C-compatible file that won't run under CMD+R in TextMate
#import <Foundation/Foundation.h>
int main (int argc, char const *argv[])
{
NSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init];
for(size_t i = 0; i < 2; ++i)
{
NSLog(@"Hello world");
}
[arp drain];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment