fix the NSAlert button event handling

* replace deprecated NSBeginAlertSheet with NSAlert
use PSMTabBarControl from uxp/PSMTabBarControl@bae7c721b8