|
Navigation: Programming Cookbook > Binary Filing Objects > Customising storage > How to use an STB Proxy |
![]() ![]()
|
You indicate that you wish to change the way an objects is filed by adding an #stbSaveOn: instance method to your class. This controls the STBOutFiler passed as a parameter while filing the instance. Your #stbSaveOn: method must perform one of the following operations:
| 1. | To let the filer output the receiver in the normal way (this is the default inherited from Object): |
STBOutFiler>>#saveObject: self.
or
STBOutFiler>>#saveObject: self as: 0.
| 2. | To output nil instead of the receiver: |
STBOutFiler>>#saveObject: self as: nil.
| 3. | To output a proxy in place of the receiver: |
STBOutFiler>>#saveObject: self as: anSTBProxy.