ftp.nice.ch/pub/next/tools/dock/Locus.1.0.NI.bs.tar.gz#/Locus/TechDocs/PreferencesSystem.rtf

This is PreferencesSystem.rtf in view mode; [Download] [Up]

Copyright 1993 Jeremy Slade.

You are free to use all or any parts of the Locus project
however you wish, just give credit where credit is due.
The author (Jeremy Slade) shall not be held responsible
for any damages that result out of use or misuse of any
part of this project.

JGS Tue Apr 27 21:34:01 PDT 1993



The Preferences System

	The Preferences System works with the NXDefaults database to store preferences, and global variables, declared in Globals.[hm], to keep trakc of the settings at runtime.  Default values for all of the Prefs options are defined in the Defaults vector in Globals.m.  These settings can be changed either by manually writing using dwrite, or through the Prefs panel.  This different preferences available are, and the format of each is:
	
	ActivatorBorderColor	Color: three Floats, separated by spaces
	ActivatorFillColor	Color
	ActivatorFloat	Boolean ( YES, NO )
	ActivatorMask	Integer
	AddThroughActivator	Boolean
	AddThroughAppIcon	Boolean
	AutoSave		Boolean
	AutolaunchHide	Boolean
	HideOnDeactivate	Boolean
	InspectorLocation	Point: Two floats, separated by spaces
	InspectorMode	String: Folder, Group, Item, None
	StartupFolders	Tab-seperated list of Folder names/paths
	VerifyActions		Boolean
	ViewerFrame		Rectangle: four Floats, separated by spaces
	
	Most of these options are available through the Prefs panel, while others such as InspectorLocation are set through other actions.
	When Locus is started, the prefs are read via the -readPrefs method of MainController.  Any changes made at run-time (well, most changes) will not get saved to the defaults database unless -writePrefs: is called.  This happens when the "Set" button of the Prefs panel is clicked.  Other changes are lost when Locus is terminated.
	
	

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.