开发者

NSDateFormatter in an NSTableView with a datasource

开发者 https://www.devze.com 2023-03-31 16:52 出处:网络
I am trying to use the NSDateFormatter on a cell in a table view. My table view uses a dataSource not an NSArr开发者_如何学PythonayController.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号