Commented out the aliasdata stuff that doesn't work
authorKent Sutherland <ksuther@ithinksw.com>
Sat, 22 May 2004 22:25:55 +0000 (22:25 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Sat, 22 May 2004 22:25:55 +0000 (22:25 +0000)
ITFoundation.h
ITFoundation.xcode/project.pbxproj
ITLoginItem.m

index 6b8fced..2edb3b2 100755 (executable)
@@ -14,8 +14,8 @@
 
 #import <Cocoa/Cocoa.h>
 
-#import <ITFoundation/ITOSAScript.h>
-#import <ITFoundation/ITOSAComponent.h>
+//#import <ITFoundation/ITOSAScript.h>
+//#import <ITFoundation/ITOSAComponent.h>
 #import <ITFoundation/ITAppleEventCenter.h>
 #import <ITFoundation/ITDebug.h>
 #import <ITFoundation/ITLoginItem.h>
@@ -25,4 +25,4 @@
 #import <ITFoundation/ITCarbonSupport.h>
 #import <ITFoundation/ITAppleEventTools.h>
 
-#import <ITFoundation/ITXMLParser.h>
\ No newline at end of file
+//#import <ITFoundation/ITXMLParser.h>
\ No newline at end of file
index 91308dd..21b6caa 100755 (executable)
                        refType = 4;
                        sourceTree = "<group>";
                };
-               370786C205C0B4D700E6D1BA = {
-                       fileRef = 370786C005C0B4D700E6D1BA;
-                       isa = PBXBuildFile;
-                       settings = {
-                               ATTRIBUTES = (
-                                       Public,
-                               );
-                       };
-               };
-               370786C305C0B4D700E6D1BA = {
-                       fileRef = 370786C105C0B4D700E6D1BA;
-                       isa = PBXBuildFile;
-                       settings = {
-                       };
-               };
                376AF4DD06597CA900F0979E = {
                        fileEncoding = 30;
                        isa = PBXFileReference;
                        refType = 4;
                        sourceTree = "<group>";
                };
-               37B1C5770612599000F99008 = {
-                       fileRef = 37B1C5730612599000F99008;
-                       isa = PBXBuildFile;
-                       settings = {
-                       };
-               };
-               37B1C5780612599000F99008 = {
-                       fileRef = 37B1C5740612599000F99008;
-                       isa = PBXBuildFile;
-                       settings = {
-                               ATTRIBUTES = (
-                                       Public,
-                               );
-                       };
-               };
-               37B1C5790612599000F99008 = {
-                       fileRef = 37B1C5750612599000F99008;
-                       isa = PBXBuildFile;
-                       settings = {
-                       };
-               };
-               37B1C57A0612599000F99008 = {
-                       fileRef = 37B1C5760612599000F99008;
-                       isa = PBXBuildFile;
-                       settings = {
-                               ATTRIBUTES = (
-                                       Public,
-                               );
-                       };
-               };
                37B9B08005C1C47E00702FDB = {
                        fileEncoding = 4;
                        isa = PBXFileReference;
                        refType = 4;
                        sourceTree = "<group>";
                };
-               37B9B08205C1C47E00702FDB = {
-                       fileRef = 37B9B08005C1C47E00702FDB;
-                       isa = PBXBuildFile;
-                       settings = {
-                               ATTRIBUTES = (
-                                       Public,
-                               );
-                       };
-               };
-               37B9B08305C1C47E00702FDB = {
-                       fileRef = 37B9B08105C1C47E00702FDB;
-                       isa = PBXBuildFile;
-                       settings = {
-                       };
-               };
 //370
 //371
 //372
                                8DC2EF510486A6940098B216,
                                7CA50D7E054E7C600074E1D9,
                                7CA50B2D054E77950074E1D9,
-                               370786C205C0B4D700E6D1BA,
-                               37B9B08205C1C47E00702FDB,
                                7CA50B31054E77A00074E1D9,
                                3D2D8A13055E07D800F59C27,
                                2AB93A3205705A0C007E748F,
                                3D97137B05D9FB7C0033607F,
                                3D97137F05D9FBF40033607F,
                                3D97138A05D9FD6B0033607F,
-                               37B1C5780612599000F99008,
-                               37B1C57A0612599000F99008,
                                376AF4DF06597CA900F0979E,
                        );
                        isa = PBXHeadersBuildPhase;
                                7CF6C931057D65B0007FEC13,
                                7CF6C939057D65BA007FEC13,
                                7C97DC2F05B614300013E85F,
-                               370786C305C0B4D700E6D1BA,
-                               37B9B08305C1C47E00702FDB,
                                3D97137C05D9FB7C0033607F,
                                3D97138105D9FBFA0033607F,
                                3D97138B05D9FD6B0033607F,
-                               37B1C5770612599000F99008,
-                               37B1C5790612599000F99008,
                                376AF4E006597CA900F0979E,
                        );
                        isa = PBXSourcesBuildPhase;
index 636e2df..05a16b0 100755 (executable)
@@ -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;