fedor@gnu.org
)n.pero@mi.flashnet.it
)Version: $Revision: 1.34 $
Date: $Date: 2015/08/31 02:17:17 $
Copyright: (C) 2005 Free Software Foundation, Inc.
This document contains a summary of available user default values that
one can set to control the operation of the GNUstep libraries. To set
a default, use the defaults write (domain) (key) (value)
command in a terminal, with the NSGlobalDomain
as first
argument. E.g.,
defaults write NSGlobalDomain GSBackend libgnustep-art
To read out the value set for the default, use defaults read
(domain) [(key)]
. If you do not specify the key, every
key-value pair in the domain will be printed.
Other domains besides the system level domain
"NSGlobalDomain
" include the application domains, named
for each application that has registered defaults, and the temporary
runtime "NSArgumentDomain
" for command line arguments.
At runtime there is also a "NSRegistrationDomain
", a
second-chance domain in which "defaults for defaults" can be
registered, and possibly also domains for specific locales.
Below is a list of defaults used to control the gnustep-gui library.
You can set them either in NSGlobalDomain
, to be used
everywhere, or in individual application domains, to be used for those
apps only.
A string containing the name of the backend bundle to use for display specific GUI handling. The default is "libgnustep-back". Custom backends can be created during compilation of the libraries. Any other choice for a name is thus system specific.
A boolean value, NO
by default. When the feature is on,
NSBrowserCell draws non-leaf cells in bold system font.
For example, when the feature is on, in a SavePanel (or OpenPanel),
directory entries are drawn in bold, while simple files are drawn in
non bold.
The key used to abort the insertion of multi-stroke keybinding.
Default is Control-g
.
An array listing the names of bundles that will be automatically loaded into every application at startup. Typically these will be 'theme' bundles that control the look of the application.
The key used to quote the next keystroke (so that it is not
interpreted as a keybinding, but just inserted into the text as
it is). Default is Control-q
.
A boolean, by default NO. If you set it to YES, NSSplitView uses a 'ghost' bar to show resizing instead of doing a live resizing of the views.
A string which can be used to specify the name of the application
to be used to view application help.
If this is not specified
(or is an empty string) the 'best' available viewer is used (an
application whose Info.plist says that it can view files of the
appropriate type ... usually rtp or rtfd files).
If this is set to NSHelpPanel
or if no application can
be used to view the help file, the help is displayed by the
shared help panel object built in to the application.
A boolean, by default NO. If you set it to YES, keystrokes containing a Control are inserted into the text when they can't be interpreted as keybindings. By default, they are ignored and cause the computer to beep.
An array of strings, (DefaultKeyBindings)
by
default. The strings in this array (with .dict
appended) are the names of the files the library reads to
load the keybindings. For each of these files (in the order),
the library first tries to read the file with that name from
the
$GNUSTEP_SYSTEM_ROOT/Libraries/Resources/KeyBindings/
directory, loading all the keybindings it finds in the file,
then it loads the similar file from
$GNUSTEP_LOCAL_ROOT
and then the similar one
from $GNUSTEP_NETWORK_ROOT
and at last the one
from $GNUSTEP_USER_ROOT
. If you have a single
set of customized keybindings which you want to be loaded in
addition to the default ones (or overriding some of the default
ones), just add a DefaultKeybindings.dict
file
in your ~/GNUstep/Libraries/Resources/KeyBindings/
directory, and keybindings from this file are automatically
loaded in addition to the default ones; you do not need to
change this user default. If instead you want more keybinding
files to be loaded, or you do not want the system default keybindings
file to be loaded, you might well need to change it.
A dictionary, containing keybindings which are loaded by the
library after the ones found in the GSKeyBindingsFiles
.
Might be useful if you have only a couple of keybindings, and
don't want to write a custom keybindings file. If you have many
keybindings, it is recommended that you keep them in a file.
The syntax of keybindings entries and files is documented elsewhere.
Specifies a dictionary containing printer information for the GSLPR printer bundle. See the bundle source for details.
A boolean value, NO
by default. When the
feature is on, the save panel and its subclasses (such as
the open panel) displays "Reading Directory ***.."
(progressively adding dots) in the window titlebar while
reading very big directories (more than 100 entries). This
is meant to make things friendlier for slow computers.
A string value that defines a program that should be launched when no GNUstep application has been defined for a specific file extension or if an URL could not be opened by a service. This program gets the file name or URL as parameter.
A boolean value, NO
by default. When the
feature is on, thumbnail files according to the Freedesktop
specification are used in [NSWorkspace iconForFile:] when available.
A boolean value that defaults to NO
. This is a
obscure and probably not useful default. NSWorkspace tries
to receive distributed notifications, but if a distributed
objects server cannot be found or some other error occurs,
it raises an exception which normally terminates the
program. Setting this default causes NSWorkspace to just log
the problem without raising an exception.
A string value that defaults to "GWorkspace"
.
This defines the application NSWorkspace will try to
connect to process some operations that require an external
application. This is a new feature and has not been tested.
A boolean value, NO
by default. Specifies wether the
application icon window should not be displayed. Set to YES
for background server applications.
A string used in the menu to signify that the control key needs to be pressed together with the key equivalent of the menu item. Default "^".
A string used in the menu to signify that the alternate key needs to be pressed together with the key equivalent of the menu item. Default "+".
YES if the scroller arrows are at the same end. NO to get one scroller arrow at each end of the scroller. If not set, the behaviour is delegated to NSScrollerInterfaceStyle. Default YES.
YES if clicking in the scroller slot should scroll by one page, NO if the scroller should jump to the location clicked. If not set, the behaviour is delegated to NSScrollerInterfaceStyle. Default NO.
A string used in the menu to signify that the shift key needs to be pressed together with the key equivalent of the menu item. Default "/".
A string used in the menu to signify that the command key needs to be pressed together with the key equivalent of the menu item. Default "#".
A string describing the interface style. Setting this may change various aspects of how the library draws elements and responds to user interaction. See the NSInterfaceStyle documentation for more information.
An interface style specific to menu operation. If not set
the NSInterfaceStyleDefault value is used.
Setting this to NSMacintoshInterfaceStyle produces a horizontal
menu at the top of the screen.
Setting it to NSNextStepInterfaceStyle reverts to the defaults
vertical menu layout.
A dictionary of command key equivalents for menu items. The key contains the title of the menu item and the value is the command key equivalent. For instance, one might set the command key for the menu item "Copy" to "C".
Used by NSPasteboard to find the host on which the pasteboard server is running.
A string describing the measurement unit for rulers (see the NSRulerView class documentation). The default is Centimeters. Other possible values are Inches, Points, and Picas.
A string value that defaults to "gv"
.
This defines the application NSPrintOperation will try to
connect to preview PostScript files, unless there is already
an application registed as a Viewer of ps files.
This is mainly a developer option. If "YES", the application will display localization keys instead of strings in its UI. This can be useful during development to see where a given string in the UI is "coming from". Default is "NO".
This determines the behavior of an applicationms when a second copy
is started up.
If set to YES the newly started copy makes the process which is
already running active, then terminates itsself.
If set to NO, the newly started copy runs, but has a different
name (so it cannot be contacted to provide services for other
applications).
System colors are standard colors for drawing various GUI elements, such as buttons, text, scroller, etc. They can be set using the normal user defaults system. An NSColorList called "System" is stored in the users's private color list directory. This color list can also be manipulated through the NSColorList class (typically through a preferences module).
Individual system colors may be set by specifying the name of
the system color and giving it a value consisting of aan RGB
color specification (three floating point numbers in the range
0.0 to 1.0 and separated by spaces).
eg.
'defaults write NSGlobalDomain controlBackgroundColor "1.0 0.0 0.0"'
System Fonts may be set using the defaults system. System fonts are standard fonts for drawing text in GUI elements. They include NSBoldFont, for instance. The value is the name of the font to use. There is also a cooresponding size key (e.g. NSBoldFontSize) for specifying the point size of the font. The keys that can be used for setting the system fonts are described in the documentation for NSFont.