Christian wrote:
> >Also, what does the "defaults" program do? Didn't find documentation on
> >it..
>
> Starts up WebScripted Apps as far as I know.
>
Umm, no; it's the mechanism by which user preferences are stored.

>From the man page (available on Mach):

"NEXTSTEP applications and other programs use the defaults system to record  
user preferences and other information that must be maintained when the  
applications aren't running (such as default font for new documents, or the  
position of an Inspector panel). Much of this information is accessible  
through an application's Preferences panel (or the equivalent), but some of  
it isn't, such as the position of the Inspector panel.

"User defaults belong to domains, which typically correspond to individual  
applications.  Each domain has a dictionary of keys and values representing  
its defaults; for example, "Default Font" = "Helvetica".  Keys are always  
strings, but values can be complex data structures comprising arrays,  
dictionaries, strings, and binary data.  These data structures are stored as  
property lists. [...]"


In addition to storing UI Preferences information, the defaults system also  
stores other information relevant to a particular application (or to all  
applications if the domain is the NSGlobalDomain -- which might be used to  
store default paper size, for example).

cf David Neumann's recent suggestion for setting a port for Monitor:
        defaults write Monitor WOPort 3333

or my suggestion a while back: if you want to see what SQL EOModeler is  
generating do
        defaults write EOModeler EOAdaptorDebugEnabled YES

Best wishes,

mmalc.

Reply via email to