خرید بک لینک

Vote count: 0

So I have a NSTextField, which is bound to the objectValue of the NSTableCellView. I'm filling in the table using NSTableViewDataSource via:

func tableView(tableView: NSTableView, objectValueForTableColumn tableColumn: NSTableColumn?, row: Int) -> AnyObject?

I've put a NULL Placeholder (for example "NULL") which is showing in both cases: when I retu nil and when I retu "" (empty string) as objectValue.

What I'm expecting is the Placeholder to appear only when the value is nil. Please advise ... maybe I'm doing something fundamentally wrong.

asked 1 min ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 18 اسفند 1394 ساعت: 2:09

صفحه بندی