Disclaimer: This question is an extension to this question
I am trying to populate a Table in NSPopover.(As seen in the image)
Problem:
I am not able to make transparent background to NSTextField.
Strangely, it works fine if view is attached to NSWindow
(The names in window at left are having transparent background, but same view when seen in NSPopover fails to show transparent background to NSTextfield.)
Is this a bug in NSPopover or am I doing something wrong ?
This is my code to create Table cells
func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView? {
var cell = NSTableCellView(frame: NSMakeRect(0, 0, 100, 40))
var textField = NSTextField(frame: NSMakeRect(0, 0, 50, 20))
// **For transparency**
textField.stringValue = nameList[row]
textField.bezeled = false
textField.editable = false
textField.drawsBackground = false
cell.addSubview(textField)
return cell
}