Posts

Post marked as solved
3 Replies
Thanks for the info about load/unload.> So what lifecycle do you need?We have a task we want to hand off to a different process than the app that can continue if the app quits but that there is no reason for the process to continue after the task is completed. Communication using XPC feels right for the communication.A restriction for LoginItems is that for SMLoginItemSetEnabled to work the application needs to be in the /Applicationsfolder.> That’s not my experience.I couldn't get my loginitem to start, and read the blog post below that the app needs to be in the applications folder, copied the app to the Applications folder and the login item started as soon as I called SMLoginItemSetEnabled and was open for XPC communication.http://martiancraft.com/blog/2015/01/login-items/I was able to debug after that by attaching to both the login item and the application from within Xcode.Further internal discussion, and we decided not to do launch agent or login item. I am replying for completeness sake.