// // main.m // hpcalc-hp15 // // Created by Ken on 8/29/08. // Copyright Ken Staton 2008. All rights reserved. // #import "define_hp16.h" #import int main(int argc, char *argv[]) { @autoreleasepool { /* Create sub-folders under ~/Library/net.ihatewaiting.iphone.hpcalc and move state file */ /* if ( ! [[NSFileManager defaultManager] fileExistsAtPath:[@CFGPATH stringByExpandingTildeInPath]] ) { [[NSFileManager defaultManager] createDirectoryAtPath:[@CFGPATH stringByExpandingTildeInPath] attributes:nil]; NSString *path = [NSString stringWithFormat:[@"~/Library/net.ihatewaiting.iphone.hpcalc" stringByExpandingTildeInPath]]; NSString *name = [NSString stringWithFormat:@"%@/%s.state", path, MODEL]; NSString *newName = [NSString stringWithFormat:@"%@/%s/state", path, MODEL]; if ( [[NSFileManager defaultManager] fileExistsAtPath:name] ) { [[NSFileManager defaultManager] copyPath:name toPath:newName handler:nil]; [[NSFileManager defaultManager] removeFileAtPath:name handler:nil]; } } */ /* Set permissions of hpcalc folder to allow user mobile to save state, etc. */ /* [[NSFileManager defaultManager] changeFileAttributes: [NSDictionary dictionaryWithObject:[NSNumber numberWithLong:509] forKey:@"NSFilePosixPermissions"] atPath: [@CFGPATH stringByExpandingTildeInPath] ]; */ int retVal = UIApplicationMain(argc, argv, nil, nil); return retVal; } }