By "in the background" what do you mean? If you are talking about just not having an entry on the dock or a menubar, then it is easy, you just have to put the "LSUIElement" tag into the Info.plist file inside the application bundle with a value of True (bool).
If you are talking about something else, then you are going to need to be a lot clearer.