Registers send and return types for the Services facility.
- macOS 10.0+
This method is invoked automatically when the first instance of a text view is created; you should never need to invoke it directly.
NSText that wish to add support for new service types should override
register to call
super and then register their own new types.