Hi Jayson,
Jayson Kempinger a écrit :
I know that the value is stored in ~/Library/
Preferences/.GlobalPreferences.plist (AppleHighlightColor). I'm not
sure what the Carbon way to read this value would be, 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.
Waiting I complete the design, you can play with :
http://eric.bachard.free.fr/mac/aquavcl/patches/aquavcl01_may2007/retrieve_from_system/aqua_retrieve_colors_from_system3.diff
Note :
- the code is protected against empty values : when the user never
modified the preferences, blue (default) is used
- current behaviour is : no upgrade in runtime. (if you change the
highlighted colors in System Preferences in runtime, you'll have to
restart to see the changes)
Like Herbert, use directly Appearance Manager would be a better and more
simple solution, and I'll test more simple soon. Stay tuned
Eric Bachard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]