Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Search for a symbol in all objects
Last updated at 10:31 am UTC on 10 March 2016
Search for the occurence of #swapMouseButtonsChanged in instance variable of all objects in the image:

 term := #swapMouseButtonsChanged.
 senders := OrderedCollection new.

 SystemNavigation default allObjectsDo: [:ea |
       1 to: ea class instSize do: [:i | |val|
               val := ea instVarAt: i.
               val isSymbol ifTrue: [
                       val = term ifTrue: [senders add: ea]]]].

Source: Marcel Taeumel, Mar 07, 2016, Squeak Dev Mailing List