X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/54439d22fae260328c4d4dc566de4e439c105c2d..82f3d7a2c51dd64ff663cdef7399d50cad4cca6b:/ITLoginItem.m diff --git a/ITLoginItem.m b/ITLoginItem.m index 636e2df..05a16b0 100755 --- a/ITLoginItem.m +++ b/ITLoginItem.m @@ -25,12 +25,12 @@ void ITSetApplicationLaunchOnLogin(NSString *path, BOOL flag) loginarray = [[loginwindow objectForKey:@"AutoLaunchedApplicationDictionary"] mutableCopy]; if (flag) { - FSRef fileRef; + /*FSRef fileRef; AliasHandle alias; NSData *aliasData; FSPathMakeRef([path UTF8String], &fileRef, NULL); FSNewAlias(NULL, &fileRef, &alias); - aliasData = [NSData dataWithBytes:&alias length:GetHandleSize((Handle)alias)]; + aliasData = [NSData dataWithBytes:&alias length:GetHandleSize((Handle)alias)];*/ if (!loginarray) { //If there is no loginarray of autolaunch items, create one loginarray = [[[NSMutableArray alloc] init] autorelease]; @@ -38,7 +38,7 @@ void ITSetApplicationLaunchOnLogin(NSString *path, BOOL flag) NSDictionary *itemDict = [NSDictionary dictionaryWithObjectsAndKeys: [[NSBundle mainBundle] bundlePath], @"Path", [NSNumber numberWithInt:0], @"Hide", - aliasData, @"AliasData", nil, nil]; + [NSData data], @"AliasData", nil, nil]; [loginarray addObject:itemDict]; } else { int i;