Stored objects
You can store arbitrary objects in a shared library using the methods described in this section. The methods use inherited user fields to write objects to the library in association with components. In order to use these features, load the configuration map LibraryObjectStorage into your image.
The default of these methods are implemented in the class SubApplication contained in the application LibraryObjects.
The methods you use include the following:
objectNamed: aString
Answers the stored object with the given name. Answers nil if there is no such object.
objectNamed: aString ifAbsent: aBlock
Answers the stored object with the given name. Answers the value of the block if there is no such object.
storeObject: anObject as: aName
Writes the object to the library and store it with the given name.
deleteObjectNamed: aName
Deletes the object with the given name from the receiver. Answers nil if an error occurs or if there is no object with that name.
Note that classes respond to similar, but different methods. In addition to the parameters passed to the methods above, classes require the application that specifies the class definition or extension associated with the stored object.
Last modified date: 01/29/2015