For blog A Well-formed macOS Menu Bar Application in Sandbox
Starts program automatically after user login in Swift.
中文说明:macOS应用登录时启动的实现方式
The Objective C implementation and English Blog is from Cory Bohon.
All related talks can be found here. Register as Login Item with Cocoa?