diff options
Diffstat (limited to 'Foundation/GTMNSAppleEventDescriptor+Foundation.m')
-rw-r--r-- | Foundation/GTMNSAppleEventDescriptor+Foundation.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Foundation/GTMNSAppleEventDescriptor+Foundation.m b/Foundation/GTMNSAppleEventDescriptor+Foundation.m index deb375f..14f256d 100644 --- a/Foundation/GTMNSAppleEventDescriptor+Foundation.m +++ b/Foundation/GTMNSAppleEventDescriptor+Foundation.m @@ -507,13 +507,12 @@ static NSMutableDictionary *gTypeMap = nil; BOOL isGood = YES; AppleEvent replyEvent = { typeNull, NULL }; OSStatus err = AESendMessage([self aeDesc], &replyEvent, mode, timeout * 60); + NSAppleEventDescriptor *replyDesc + = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&replyEvent] autorelease]; if (err) { isGood = NO; _GTMDevLog(@"Unable to send message: %@ %d", self, err); - replyEvent.descriptorType = typeNull; - replyEvent.dataHandle = NULL; } - NSAppleEventDescriptor *replyDesc = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&replyEvent] autorelease]; if (isGood) { NSAppleEventDescriptor *errorDesc = [replyDesc descriptorForKeyword:keyErrorNumber]; if (errorDesc && [errorDesc int32Value]) { |