I use a custom editor when editing the contents of a cell inside a table view. From the docs, I see that the custom editor should be an NSTextView. So I put the text view in the document view, then I referenced it from a cell subclass via IBOutlet to designate it as a custom editor.
By doing all this, I can configure the editor not to draw its background, but a thick white frame is displayed when the user edits this cell, and there is no way to delete it.
So, I create an NSTextView programmatically, assign it as a custom editor, and the white frame does not appear, but I canโt change the background now, set it to clearColor, set the font, fontColor, etc. I canโt do anything about it. It is just a square with a dark background and white text.
Is there something I am not doing? Is this a bad approach?
Thank.
source
share