Hi everyone on MacRumors.
I'm having trouble with a pesky NSTableView class. I have it's dataSource set to my MyDocument class, which suppplies it with a NSMutableArray containing instances of a custom class of mine called "Log". Log contains three variables: 'description' which is a string, 'amount' which is a double, and 'date' which is a NSCalendarDate.
When I display the NSTableView it has no trouble with the double or the string, but if I try and get it to display the NSCalendarDate the debugger goes crazy. Date formatters may be applied to columns, so there must be a way of passing the tableView a date field. I just can't figure out exactly what to send it. Any help would be much appreciated!
I'm having trouble with a pesky NSTableView class. I have it's dataSource set to my MyDocument class, which suppplies it with a NSMutableArray containing instances of a custom class of mine called "Log". Log contains three variables: 'description' which is a string, 'amount' which is a double, and 'date' which is a NSCalendarDate.
When I display the NSTableView it has no trouble with the double or the string, but if I try and get it to display the NSCalendarDate the debugger goes crazy. Date formatters may be applied to columns, so there must be a way of passing the tableView a date field. I just can't figure out exactly what to send it. Any help would be much appreciated!