views:

40

answers:

1

Hi!

I am using a custom editor when editing the contents of a cell inside a Table view. From the docs I see that the custom editor has to be an NSTextView. So I put the text view in the document view, then I referenced it from the cell subclass through an IBOutlet in order to assign it as custom editor.

When doing all this, I can set the editor not to draw its background, but a thick white border is shown when the user edits that cell, and there is no way to remove it.

So I create the NSTextView programmatically, assigned it as the custom editor, and no white border is shown, but I can't change the background now, set it to clearColor, set the font, fontColor etc. I can't do anything with it. It is just a square with dark background and white text.

Is there something I am not doing? This is a bad approach?

Thank you.

A: 

Unlike you create NSTextView from XIB, I'm createing the NSTextView by hand, and I have the white border shown as well. any one knows which one draws the white border? the NSTableView?

Jonny