You can edit the Info.plist file in your project, create a new property on the Source tab of "Application is agent (UIElement)", and set it to the string of "1".
This is the same as manually setting LSUIElement to 1 in a text editor and tells OS X to launch the application as an agent.