From a5660f38eb611b4628f3712916666d8e34c79eb5 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 7 Jan 2011 13:02:09 -0700 Subject: [PATCH] document weak reference by `notify-on-change' --- collects/scribblings/gui/style-list-class.scrbl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/collects/scribblings/gui/style-list-class.scrbl b/collects/scribblings/gui/style-list-class.scrbl index 7a05a1753d..440b711eb1 100644 --- a/collects/scribblings/gui/style-list-class.scrbl +++ b/collects/scribblings/gui/style-list-class.scrbl @@ -126,7 +126,8 @@ The @scheme[like-style] style must be in this style list, otherwise @defmethod[(notify-on-change [f ((or/c (is-a?/c style<%>) #f) . -> . any)]) any/c]{ -Attaches a callback to the style list. The callback is invoked +Attaches a callback to the style list, retaining the callback only weakly (in + the sense of @racket[make-weak-box]). The callback is invoked whenever a style is modified. Often, a change in one style will trigger a change in several other