subscribeWorkspaceNotification

abstract fun subscribeWorkspaceNotification(event: String?, callback: (event: String, userInfo: ReadonlyRecord<String, Any?>, object: String) -> Unit): Double(source)

The ID of this subscription

Same as subscribeNotification, but uses NSWorkspace.sharedWorkspace.notificationCenter. This is necessary for events such as NSWorkspaceDidActivateApplicationNotification.

If event is null, the NSWorkspaceNotificationCenter doesn’t use it as criteria for delivery to the observer. See docs for more information.