I can't figure out how to set an NSDateFormatter
for a static text table cell view in Interface Builder using the new view based NSTableViews
. Since the problem is Interface Builder related, here are the steps to recreate the setup in Interface Builder:
NSDateFormatter
, in settings, set the Date Style to Short Style NSDateFormatter
. I seem to always get the default date formatting. How do I apply the date format to the dates in the table?
The solution was actually very simple with the latest XCode 4.3.1:
No additional wiring was required. Hope this helps somebody else running into this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.