Maximum text length

Hi, ALL,
Is there a way to have maximum text length in NSTextView?
My scenario: I have NSTextView whose text will go into the DB. Since DB column is fixed size, I'd like to prevent the user to type more characters than needs to be.

Thank you.

Not sure there is a simple/native max length.

Seen the discussion here?

https://stackoverflow.com/questions/35589503/set-maximum-characters-to-one-in-a-nstextfield-in-swift

Set a count, then keep an eye on that...
@KMT,
Thank you for the reply.
Unfortunately they are talking about NSTextField and not NSTextView.
And in that case the limit is 1, which is very easy to set.

Is there something for the NSTextView?

Thank you.

P.S.: Maybe this can be used to implement it?

Maximum text length
 
 
Q