In OS X Lion apps automatically resume when the user logs in. My app is set to be a windowless agent without an icon in the Dock (LSUIElement is set to YES in Info.plist) and it doesn’t resume when I restart my machine.
According to Apple documentation all applications get the Resume behaviour by default and the developer doesn’t need to do anything special to enable it. Are LSUIElement apps a special case? Is there anything that needs to be done to enable them to Resume?
From my own testing,
LSUIElementapplications are not resumed. So yes, they appear to be a special case – you’d need to ask Apple why this is the case, but setting this value appears to forcibly disable resume.