git.ithinksw.org
/
ITFoundation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8d77017
)
Dewarninging ITAppleEventTools
author
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 22 Apr 2004 23:04:25 +0000
(23:04 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 22 Apr 2004 23:04:25 +0000
(23:04 +0000)
ITAppleEventTools.m
patch
|
blob
|
history
diff --git
a/ITAppleEventTools.m
b/ITAppleEventTools.m
index
6eb927c
..
0b86b64
100755
(executable)
--- 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)
{
NSAppleEventDescriptor *ITSendAEWithKey(FourCharCode reqKey, FourCharCode evClass, FourCharCode evID,const ProcessSerialNumber *psn)
{
+ return nil;
}
NSAppleEventDescriptor *ITSendPlainAE(FourCharCode eClass, FourCharCode eID,const ProcessSerialNumber *psn)
}
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;
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.");
ITDebugLog(@"Error getting PID of application.");
- return;
+ return
nil
;
}
cerr = AECreateDesc(typeProcessSerialNumber,(ProcessSerialNumber*)&psn,sizeof(ProcessSerialNumber),&dest);
nsd = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&dest] autorelease];
}
cerr = AECreateDesc(typeProcessSerialNumber,(ProcessSerialNumber*)&psn,sizeof(ProcessSerialNumber),&dest);
nsd = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&dest] autorelease];