The silly thing compiles now
authorKent Sutherland <ksuther@ithinksw.com>
Mon, 17 May 2004 23:06:45 +0000 (23:06 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Mon, 17 May 2004 23:06:45 +0000 (23:06 +0000)
ITFoundation.xcode/project.pbxproj
ITLoginItem.h
ITLoginItem.m

index 89d2c80..17f83ae 100755 (executable)
@@ -81,6 +81,8 @@
                };
                0867D691FE84028FC02AAC07 = {
                        children = (
+                               376AF4DD06597CA900F0979E,
+                               376AF4DE06597CA900F0979E,
                                08FB77AEFE84172EC02AAC07,
                                2AB93A2C057059DC007E748F,
                                32C88DFF0371C24200C91783,
                        settings = {
                        };
                };
+               376AF4DD06597CA900F0979E = {
+                       fileEncoding = 30;
+                       isa = PBXFileReference;
+                       lastKnownFileType = sourcecode.c.h;
+                       path = ITLoginItem.h;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               376AF4DE06597CA900F0979E = {
+                       fileEncoding = 30;
+                       isa = PBXFileReference;
+                       lastKnownFileType = sourcecode.c.objc;
+                       path = ITLoginItem.m;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               376AF4DF06597CA900F0979E = {
+                       fileRef = 376AF4DD06597CA900F0979E;
+                       isa = PBXBuildFile;
+                       settings = {
+                       };
+               };
+               376AF4E006597CA900F0979E = {
+                       fileRef = 376AF4DE06597CA900F0979E;
+                       isa = PBXBuildFile;
+                       settings = {
+                       };
+               };
                37B1C5160612592F00F99008 = {
                        children = (
                                370786C005C0B4D700E6D1BA,
                                3D97138A05D9FD6B0033607F,
                                37B1C5780612599000F99008,
                                37B1C57A0612599000F99008,
+                               376AF4DF06597CA900F0979E,
                        );
                        isa = PBXHeadersBuildPhase;
                        runOnlyForDeploymentPostprocessing = 0;
                                3D97138B05D9FD6B0033607F,
                                37B1C5770612599000F99008,
                                37B1C5790612599000F99008,
+                               376AF4E006597CA900F0979E,
                        );
                        isa = PBXSourcesBuildPhase;
                        runOnlyForDeploymentPostprocessing = 0;
index 2bd02a8..ecb9daa 100755 (executable)
@@ -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 <Carbon/Carbon.h>
-#include <Foundation/Foundation.h>
\ No newline at end of file
+#import <Carbon/Carbon.h>
+#import <Foundation/Foundation.h>
+#import <CoreServices/CoreServices.h>
+
index fe49255..ec2e582 100755 (executable)
@@ -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)];