I am using a fixed version of NameAndPassword, as here: https://github.com/skycocker/NameAndPassword
When using this outside the login window (for example, system.login.screensaver or my own test right), only with the NameAndPassword plug-in, the window freezes for about 10 seconds after clicking Ok or canceling.
Having added some logs, I see that MechanismDestroy is called in the plugin, and NameAndPassword is released, but it never gets dealloc in NameAndPassword. I also do not see how PluginDestroy connects. SecurityAgent freezes another 10 seconds after calling MechanismDestroy.
I saw this related entry: SecurityAgentPlugin no longer works in Yosemite (SFAuthorizationPluginView)
But in accordance with the accepted answer, it does not work and in accordance with the link to the authorization plug-in didDeactivate does not need to be called (no calls to RequestInterrupt and MechanismDeactivate are ever called). A call to SetResult should be sufficient.
I can crack it by getting a window from a window and closing it forcibly, but there must be a way to make it work as intended.
source
share