In my Mac app, I've been using SMCopyAllJobDictionaries() to check whether the app will be launched automatically at login. Basically, I get an array of all the login items and check whether my Bundle ID is in the array.
This function call works until Mavericks, but is deprecated in Yosemite. According to Apple,
This routine is deprecated and will be removed in a future release. There will be no provided replacement.
However, how can I do the same job in Yosemite? I do have to check whether my app is in the list of login items, in order to show a check box properly. I couldn't find relevant documentation from Apple.