Cocoa provides a mechanism called notification centers to register observers for particular events. The helper functions cocoa:add-observer and cocoa:remove-observer can be used to add and remove observers.
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:33