From 843b18fea32ec5481a9f64a4da67d11b00f4cf35 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Mon, 17 May 2004 23:06:45 +0000 Subject: [PATCH] The silly thing compiles now --- ITFoundation.xcode/project.pbxproj | 32 ++++++++++++++++++++++++++++++ ITLoginItem.h | 8 +++++--- ITLoginItem.m | 6 +++--- 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/ITFoundation.xcode/project.pbxproj b/ITFoundation.xcode/project.pbxproj index 89d2c80..17f83ae 100755 --- a/ITFoundation.xcode/project.pbxproj +++ b/ITFoundation.xcode/project.pbxproj @@ -81,6 +81,8 @@ }; 0867D691FE84028FC02AAC07 = { children = ( + 376AF4DD06597CA900F0979E, + 376AF4DE06597CA900F0979E, 08FB77AEFE84172EC02AAC07, 2AB93A2C057059DC007E748F, 32C88DFF0371C24200C91783, @@ -326,6 +328,34 @@ settings = { }; }; + 376AF4DD06597CA900F0979E = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + path = ITLoginItem.h; + refType = 4; + sourceTree = ""; + }; + 376AF4DE06597CA900F0979E = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.objc; + path = ITLoginItem.m; + refType = 4; + sourceTree = ""; + }; + 376AF4DF06597CA900F0979E = { + fileRef = 376AF4DD06597CA900F0979E; + isa = PBXBuildFile; + settings = { + }; + }; + 376AF4E006597CA900F0979E = { + fileRef = 376AF4DE06597CA900F0979E; + isa = PBXBuildFile; + settings = { + }; + }; 37B1C5160612592F00F99008 = { children = ( 370786C005C0B4D700E6D1BA, @@ -904,6 +934,7 @@ 3D97138A05D9FD6B0033607F, 37B1C5780612599000F99008, 37B1C57A0612599000F99008, + 376AF4DF06597CA900F0979E, ); isa = PBXHeadersBuildPhase; runOnlyForDeploymentPostprocessing = 0; @@ -945,6 +976,7 @@ 3D97138B05D9FD6B0033607F, 37B1C5770612599000F99008, 37B1C5790612599000F99008, + 376AF4E006597CA900F0979E, ); isa = PBXSourcesBuildPhase; runOnlyForDeploymentPostprocessing = 0; diff --git a/ITLoginItem.h b/ITLoginItem.h index 2bd02a8..ecb9daa 100755 --- a/ITLoginItem.h +++ b/ITLoginItem.h @@ -2,10 +2,12 @@ * ITLoginItem.h * ITFoundation * - * Created by Kent Sutherland on Sun May 16 2004. + * Created by Kent Sutherland on Mon May 17 2004. * Copyright (c) 2004 __MyCompanyName__. All rights reserved. * */ -#include -#include \ No newline at end of file +#import +#import +#import + diff --git a/ITLoginItem.m b/ITLoginItem.m index fe49255..ec2e582 100755 --- a/ITLoginItem.m +++ b/ITLoginItem.m @@ -1,8 +1,8 @@ /* - * ITLoginItem.c + * ITLoginItem.m * ITFoundation * - * Created by Kent Sutherland on Sun May 16 2004. + * Created by Kent Sutherland on Mon May 17 2004. * Copyright (c) 2004 __MyCompanyName__. All rights reserved. * */ @@ -25,7 +25,7 @@ BOOL ITSetLaunchApplicationOnLogin(NSString *path, BOOL flag) loginarray = [loginwindow objectForKey:@"AutoLaunchedApplicationDictionary"]; //Create the alias data - FSMakeRefWithPath([path UTF8String], &fileRef); + FSPathMakeRef([path UTF8String], &fileRef, NULL); FSNewAlias(NULL, &fileRef, &alias); aliasData = [NSData dataWithBytes:&alias length:sizeof(alias)]; -- 2.20.1