I've searched high and low for the answer to this, but alas, I'm here. As I know that NSDateFormatter
objects are costly to create, I don't want to instantiate one for every NSTextField
inside of my table. The problem I'm facing is that my table is view-based (as opposed to cell-based), and when attempting to connect a shared instance of a date formatter, I get the yellow warning symbol and this message:
Unsupported Configuration: Outlet 'formatter' of 'Text Field Cell - Table View Cell' is connected to 'Date Formatter,' an invalid destination (Objects inside view based table views may only be connected to the table view's delegate.)
The problem with that warning is this: the above referenced "Date Formatter" is a property of "File's Owner," which also happens to be the NSTableView
's delegate. Am I missing something here, or am I going to have to create formatters for every date-related text field in my table?