PageRenderTime 30ms CodeModel.GetById 16ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 9#import <Cocoa/Cocoa.h>
10#import <Nu/Nu.h>
11
12int main(int argc, char *argv[])
13{
14	NSAutoreleasePool *pool = [NSAutoreleasePool new];
15	id nu = [Nu parser];
16	for (NSString *nuFile in [[NSBundle mainBundle] pathsForResourcesOfType:@"nu" inDirectory:@"nu"])
17		[nu eval:[nu parse:[NSString stringWithContentsOfFile:nuFile]]];
18	[nu close];
19	[pool release];
20	
21    return NSApplicationMain(argc,  (const char **) argv);
22}