---
title: registerForServices()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nstextview/registerforservices()
---

# registerForServices()

Registers send and return types for the Services facility.

## Declaration

```swift
class func registerForServices()
```

## Discussion

Discussion This method is invoked automatically when the first instance of a text view is created; you should never need to invoke it directly. Subclasses of  NSTextView that wish to add support for new service types should override registerForServices() to call super and then register their own new types.
