Contents

replyAppleEvent(forSuspensionID:)

Given a nonzero suspensionID returned by an invocation of Suspendcurrentappleevent(), returns the corresponding reply event descriptor.

Declaration

func replyAppleEvent(forSuspensionID suspensionID: NSAppleEventManager.SuspensionID) -> NSAppleEventDescriptor

Discussion

This descriptor, including any mutations, will be returned to the sender of the suspended event when handling of the event is resumed, if the sender has requested a reply. The effects of retaining the descriptor are undefined; it may be copied, but mutations of the copy are returned to the sender of the suspended event. replyAppleEvent(forSuspensionID:) may be invoked in any thread, not just the one in which the corresponding invocation of suspendCurrentAppleEvent() occurred.

See Also

Suspending and resuming Apple events