Build a faceless background application
From REALbasicWiki
| This article is a stub. You can help the REALbasicWiki community by expanding it. |
| Overall article skill | ✭ |
[edit] On Mac OS X
To build a faceless background application, i.e. an application which has no window/menu and no icon in the Dock:
- Set the
App.DefaultWindowandApp.Menubartonone - Remove (or comment out) any code that would display a window or the menubar
- Build the application
- Edit the
Info.plistfile:- Control-click on the application icon and select
Show bundle content - Inside the
Contentsfolder you will find theInfo.plistfile - Open the file with Property List Editor
- Add the property
LSBackgroundOnlyof type string and set the value to "1"
- Control-click on the application icon and select
[edit] See also
- Runtime configuration guidelines from Apple (accessed 2008-03-08)
[edit] On Windows and Linux
To build an equivalent application for Windows and Linux, it is necessary to add the following code to the App.Open event handler
app.AutoQuit = False
Since there is no Info.plist, there is no need to edit anything after compiling
Categories: Stubs | HowTo | Tutorials | Tips and Tricks
