[ENH] Preferences change notification

squeak at bike-nomad.com squeak at bike-nomad.com
Tue Jul 11 10:42:28 UTC 2000


"Change Set:		PreferencesNotification-nk
Date:			11 July 2000
Author:			Ned Konz

These changes provide for notifications upon changes in Preferences
settings, via the standard dependency mechanism.

If you become a dependent on Preferences (via Preferences addDependent:
self),
you will be notified every time a flag or parameter gets changed. If you
define
an update:with: method, you will get the new value of the flag or
parameter
as well as its name.

This also cleans up all of the direct class references to FlagDictionary
and Parameters,
changing them to use the existing accessors for these collections.

Further, it provides for setting Preferences using accessor notation:

	Preferences someSetting

used to (and still does) return the value of #someSetting (though I've
made it
return parameters as well as flags; now also 

	Preferences someSetting: someValue

will set the given setting (and, of course, notify dependents).
"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 9500 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000711/88c7fefb/attachment.obj
-------------- next part --------------




More information about the Squeak-dev mailing list