Read the message carefully. Read the text of NSTextView. This definitely indicates why at the moment you cannot create a weak link to NSTextView. You just need to read it.
For example, while dealloc is running, you can no longer create new weak links because the object will go away and all weak links will be set to nil. Attempting to assign an object to a weak variable will keep this variable nil, even if the object is not zero (for now).
And this has nothing to do with NSTextView.
source share