Team Awesome Killing Kittens
Last published: October 22, 2010 by 'bitchtits'
Defines 3 Classes
Extends 4 Classes
This package provides a simple weak slot wrapper mechanism for objects. It implements both a simple value'able wrapper (Weakling) and full blown weak proxy (WeakProxy). You can send asWeakling or asWeakProxy to get instances.
Weaklings respond to value/value:. They are handy for wrapping an inst var, so that the containing object will not keep it around. The containing object must take care to deal with the case when the ivar does indeed go to nil.
WeakProxy is a bit more ambitous as it obviates the client from having to send #value to the ivar everytime, using a DNU to forward the message. Care still has to be taken though, for at some point, those messages may start answering nil.
Weaklings was written by Travis Griggs while at Key Technology and maintained by the same while at Cincom.