Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Within Cocoa, flyweights are primarily used for the following three reasons:
Flyweights encapsulate nonobject data so that the data can be used in contexts where objects are required.
Flyweights reduce storage requirements when a large number of instances are needed.
Flyweights act as stand-ins for other objects.