So, it works fine if I disable editing for the textfield/textfieldcell... through code or interface builder.
(notice the slight shadow)
But once I make it editable ([cell setEditable:YES]) the shadow completely disappears:
I've tried drawing a shadow two ways: One, setting NSBackgroundStyleRaised
, and two, overriding - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
to manually create a shadow. Both styles/ways of drawing a shadow stop working once the cell is made editable. (To make it clear, the end result should be inset-looking, editable text. The pictures above only served as a demonstration.)
Can someone tell me why? And how I can get around this issue?