/main.m

http://github.com/trawor/doxycleanapp · Objective C · 22 lines · 12 code · 3 blank · 7 comment · 1 complexity · 208844621d6518b18ae815aa3a1ae23d MD5 · raw file

  1. //
  2. // main.m
  3. // «PROJECTNAME»
  4. //
  5. // Created by «FULLUSERNAME» on «DATE».
  6. // Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import <Nu/Nu.h>
  10. int main(int argc, char *argv[])
  11. {
  12. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  13. id nu = [Nu parser];
  14. for (NSString *nuFile in [[NSBundle mainBundle] pathsForResourcesOfType:@"nu" inDirectory:@"nu"])
  15. [nu eval:[nu parse:[NSString stringWithContentsOfFile:nuFile]]];
  16. [nu close];
  17. [pool release];
  18. return NSApplicationMain(argc, (const char **) argv);
  19. }