Hi Jayson,
Le 29 mai 07 à 17:21, Jayson Kempinger a écrit :
On May 29, 2007, at 9:42 AM, Philipp Lohmann wrote:
FYI: It is not hardcoded; that is one of the colors which can be
set in SalFrame::UpdateSettings. Just somebody has to find out how
to get the color :-)
I know that the value is stored in ~/Library/
Preferences/.GlobalPreferences.plist (AppleHighlightColor).
Exactly.
They are two example on how we use GlobalPreferences in
OpenOffice.org source code :
- one in sal/osl/unx/osxlocale.cxx ( to retrieve the locale from ethe
system ) [Tino wrote this part if I'm not wrong ]
- one in vcl/aqua/source/gdi/salnativewirdgets.cxx (to use the simple/
double arrows with scrollbar) [ I wrote it recently ]
I'm not sure what the Carbon way to read this value would be,
There is one : use Preferences Utilities ( see CFPreferences.h )
other than to read the file directly (though in Tiger it may have
to be converted from binary format to xml). I know it's readable
via the defaults command in the terminal, but that would be a very
hackish way to obtain the value.
I kno whow proceed, and I'm just testing something .. just be
patient ;-)
Eric Bachard