Coc*_*ser 8 macos cocoa objective-c
Mac OSX 10.10 Xcode 6.1
我在NSPopOver中创建了一个tableview.我尝试更改textfield的背景颜色.为什么?没有效果.tableview的亮点设置为"常规".哪种方式可以让我将textfields背景颜色改为白色?
Pro*_*tto 10
在我的应用程序中,我有同样的问题.我使用Swift,这对我有用.在viewForTableColumn中:
let cell = tableView.makeViewWithIdentifier(tableColumn!.identifier!, owner: self) as! NSTableCellView
cell.textField?.drawsBackground = true
cell.textField?.backgroundColor = NSColor.clearColor()
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2756 次 |
最近记录: |