NSDateFormatter in an NSTableView with a datasource
I am trying to use the NSDateFormatter
on a cell in a table view. My table view uses a dataSource not an NSArr开发者_如何学PythonayController
.
For some reason, when I enter a date, the setObjectValue:forTableColumn...
gets a date with ‑0000
timezone. I set the formatter in IB and I also tried setting in the delegate method dataCellForTableColumn
.
Why doesn't the NSDateFormatter
keep the time zone?
精彩评论