Discussion:
[Newbies] Class Variables in #Object
John-Reed Maffeo
2018-03-20 03:12:10 UTC
Permalink
In my current Image
-----
C:\Smalltalk\Squeak5.1-16549-64bit-201608180858-Windows\Squeak5.1-16549-64bit-201608180858-Windows\Squeak5.1-16549-64bit.4.image
Squeak5.1
latest update: #16551
Current Change Set: Example
Image format 68021 (64 bit)

I am studying class #Object.
The class comments identify two Class Variables:
DependentsFields an IdentityDictionary
EventsFields an IdentityDictionary

but the class definition only defines DependentsFields.

What am I missing here?

Thanks,

jrm
Chris Cunningham
2018-03-20 14:22:45 UTC
Permalink
Post by John-Reed Maffeo
In my current Image
-----
C:\Smalltalk\Squeak5.1-16549-64bit-201608180858-Windows\
Squeak5.1-16549-64bit-201608180858-Windows\Squeak5.1-16549-64bit.4.image
Squeak5.1
latest update: #16551
Current Change Set: Example
Image format 68021 (64 bit)
I am studying class #Object.
DependentsFields an IdentityDictionary
EventsFields an IdentityDictionary
but the class definition only defines DependentsFields.
What am I missing here?
Hi. It looks like this comment is out of date for a while now. There is
no EventsFields as you noted - the event handling mechanism migrated to the
EventManager class quite a while ago. This comment should definitely be
fixed (and will be shortly).

If you wish to follow this further, the method Object>>actionMap is how the
appropriate EventManager instance is found. Further, the related methods
are in the *System-Object Events-accessing method category (and
sub-categories).

Thanks,
cbc
Post by John-Reed Maffeo
Thanks,
jrm
_______________________________________________
Beginners mailing list
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Loading...