22 #import <Cocoa/Cocoa.h>
23 #import <Foundation/NSPathUtilities.h>
29 NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
33 homeDir=NSHomeDirectory();
34 cwd=[[NSFileManager defaultManager] currentDirectoryPath];
36 [[NSFileManager defaultManager] changeCurrentDirectoryPath:homeDir];
38 fp=fopen(
".ysjoycalib",mode);
40 [[NSFileManager defaultManager] changeCurrentDirectoryPath:cwd];