Category: Collections-Weak
Superclass: Set
I am similar to a plain set, but my items are stored in a weak array; I track which of them are garbage collected and, as soon as I encounter one of them, I swiftly remove all.

Method category index

accessing (instance)
copying (instance)
loading (instance)

accessing (instance)

add: newObject
Add newObject to the set, if and only if the set doesn't already contain an occurrence of it. Don't fail if a duplicate is found. Answer newObject

do: aBlock

Enumerate all the non-nil members of the set

top


copying (instance)

deepCopy
Returns a deep copy of the receiver (the instance variables are copies of the receiver's instance variables)

shallowCopy

Returns a shallow copy of the receiver (the instance variables are not copied)

top


loading (instance)

postLoad
Called after loading an object; must restore it to the state before `preStore' was called. Make it weak again

top