Instance Method

postToPSN(processSerialNumber:)

Posts a Quartz event into the event stream for a specific application.

Declaration

func postToPSN(processSerialNumber: UnsafeMutableRawPointer?)

Parameters

processSerialNumber

The process to receive the event.

event

The event to post.

Discussion

This function makes it possible for an application to establish an event routing policy, for example, by tapping events at the kCGAnnotatedSessionEventTap location and then posting the events to another desired process.

This function posts the specified event immediately before any event taps instantiated for the specified process, and the event passes through any such taps.