Build a faceless background application

From REALbasicWiki

Jump to: navigation, search
Overall article skill Skill ranges from beginner (green) to expert (red)

[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:

  1. Set the App.DefaultWindow and App.Menubar to none
  2. Remove (or comment out) any code that would display a window or the menubar
  3. Build the application
  4. Edit the Info.plist file:
    • Control-click on the application icon and select Show bundle content
    • Inside the Contents folder you will find the Info.plist file
    • Open the file with Property List Editor
    • Add the property LSBackgroundOnly of type string and set the value to "1"

[edit] See also

[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

Personal tools
related