X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/8d770173cee35e1b6139ee6ccb1511ccfa55a3c2..d507320b5f6481480f7e0374e5e6a71b8fbdcb34:/ITAppleEventTools.m diff --git a/ITAppleEventTools.m b/ITAppleEventTools.m index 6eb927c..da09a84 100755 --- a/ITAppleEventTools.m +++ b/ITAppleEventTools.m @@ -48,9 +48,10 @@ NSAppleEventDescriptor *ITSendAEWithString(NSString *sendString, FourCharCode ev NSAppleEventDescriptor *ITSendAEWithKey(FourCharCode reqKey, FourCharCode evClass, FourCharCode evID,const ProcessSerialNumber *psn) { + return nil; } -NSAppleEventDescriptor *ITSendPlainAE(FourCharCode eClass, FourCharCode eID,const ProcessSerialNumber *psn) +NSAppleEventDescriptor *ITSendAE(FourCharCode eClass, FourCharCode eID,const ProcessSerialNumber *psn) { AEDesc dest; int pid; @@ -58,9 +59,9 @@ NSAppleEventDescriptor *ITSendPlainAE(FourCharCode eClass, FourCharCode eID,cons AppleEvent event, reply; OSStatus cerr,cerr2,err; NSAppleEventDescriptor *nsd, *nse, *nsr; - if ((GetProcessPID(&psn, &pid) == noErr) && (pid == 0)) { + if ((GetProcessPID(psn, &pid) == noErr) && (pid == 0)) { ITDebugLog(@"Error getting PID of application."); - return; + return nil; } cerr = AECreateDesc(typeProcessSerialNumber,(ProcessSerialNumber*)&psn,sizeof(ProcessSerialNumber),&dest); nsd = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&dest] autorelease];