An example: Why this Notification "didActivateApplicationNotification"
NSWorkspace.shared.notificationCenter.addObserver(self,
selector: #selector(updateOnFocus(notification:)),
name: NSWorkspace.didActivateApplicationNotification,
object:nil)
Pass Through Notification an User Info Dictionary -> Code below = Returned Notification
NSConcreteNotification 0x60000191e3d0 {name = NSWorkspaceDidActivateApplicationNotification; object = <NSWorkspace: 0x6000015443d0>; userInfo = {
NSWorkspaceApplicationKey = "<NSRunningApplication: 0x60000394a800 (com.apple.ActivityMonitor - 6940) LSASN:{hi=0x0;lo=0x2aa2aa}>";
}}
And this Notification "activeSpaceDidChangeNotification"
NSWorkspace.shared.notificationCenter.addObserver(self,
selector: #selector(updateOnSpaceChange(notification:)),
name: NSWorkspace.activeSpaceDidChangeNotification,
object: nil)
Does not Pass an userInfo Dictionary through notification? -> Code below = Returned Notification
NSConcreteNotification 0x60000191e160 {name = NSWorkspaceActiveSpaceDidChangeNotification; object = <NSWorkspace: 0x6000015443d0>}
How can I padronize this notifications?