X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/8d770173cee35e1b6139ee6ccb1511ccfa55a3c2..2e8981e8a5d62b58f14f95c328a21756a6f6abf8:/ITAppleEventTools.m diff --git a/ITAppleEventTools.m b/ITAppleEventTools.m index 6eb927c..0b86b64 100755 --- a/ITAppleEventTools.m +++ b/ITAppleEventTools.m @@ -48,6 +48,7 @@ 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) @@ -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];