Testing your new type
Now see if your new data type works by creating a new visual part with one Text part on the Window part. Open the settings of the Text part and select Prime Number from the Data type Drop-down List of the converter property.
Test your visual part and try typing both valid and invalid data. You should see an error message (such as ** error **) in the field whenever you type an invalid value. If not, go back and check the acceptsAsDisplayToObjectInput: method you wrote.
Creating more data types
When you create your own data types, try to inherit from the data types that VA Smalltalk provides. This way, the code you write is simpler, because you don't have to check for all the error conditions that VA Smalltalk already checks for. You can inherit from any of the VA Smalltalk classes specified in Inheriting from existing data types.
Last modified date: 05/15/2020