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:
- Create Table View
- Change Content Mode to View Based, name one column Date and have it contain static text views.
- Fill the table with some test data (one column should contain dates)
- Create a
NSDateFormatter, in settings, set the Date Style to Short Style - Open the Static Text View for our date and set the formatter to the
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.