This is an NSTokenField.
Take a look at that and the NSTokenFieldCell classes.
If what you need to do is highly custom, you might want to look at third party token field implementations that are more flexible.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more