I am trying to focus an application by it's PID.
I am using the function SetFrontProcess
. This function requires a ProcessSerialNumber
, I get this by passing the PID to GetProcessForPID
. This works fine in OS X10.9, however the docs say it was deprecated in 10.9, is this true? If it is true why does it still work? Does it work in 10.10? I would love to continue using it.