objective c - How to get list of all start up/login applications on mac? -
i want list/array of application launch @ startup mac using objective c.
thanks in advance!!
here code applicaiton list startup
// loginitems list. lssharedfilelistref loginitemsref = lssharedfilelistcreate(null, klssharedfilelistsessionloginitems, null); if (loginitemsref == nil) return nil; // iterate on loginitems. nsarray *loginitems = (__bridge nsarray *)lssharedfilelistcopysnapshot(loginitemsref, nil); (id item in loginitems) { // want }
Comments
Post a Comment