/main.m
Objective C | 22 lines | 12 code | 3 blank | 7 comment | 1 complexity | 208844621d6518b18ae815aa3a1ae23d MD5 | raw file
- //
- // main.m
- // «PROJECTNAME»
- //
- // Created by «FULLUSERNAME» on «DATE».
- // Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
- //
- #import <Cocoa/Cocoa.h>
- #import <Nu/Nu.h>
- int main(int argc, char *argv[])
- {
- NSAutoreleasePool *pool = [NSAutoreleasePool new];
- id nu = [Nu parser];
- for (NSString *nuFile in [[NSBundle mainBundle] pathsForResourcesOfType:@"nu" inDirectory:@"nu"])
- [nu eval:[nu parse:[NSString stringWithContentsOfFile:nuFile]]];
- [nu close];
- [pool release];
-
- return NSApplicationMain(argc, (const char **) argv);
- }