The documentation still says NSApp.setActivationPolicy(.regular) is supported, but not NSApp.setActivationPolicy(.accessory). Obj-c header says that after 10.9, there are no restrictions on this (i.e. you can change policy to and from accessory). I've been targeting 10.11, so no problems expected.
While working on a project with the beta/initial releases of Xcode 8/Swift 3, it all seemed to go fine. I came back to work on the project now and it all seems to have gone south. Now, when I switch the app via NSApp.setActivationPolicy(.accessory) and later try to change it back via NSApp.setActivationPolicy(.regular), it fails. The result of setActivationPolicy(.regular) is false.
Am I correct that header notes are supposed to be the most accurate description of APIs in question?
Did Apple change the behavior of this API again?
Did Apple subtly change the behavior of this API just for Swift?
Thanks