View Full Version : NSCalendarDate in NSTableView

Jan 15, 2007, 06:55 PM
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!

Jan 15, 2007, 08:26 PM
Sorry everyone, I wrote a bad setter method which is why it wasn't working :rolleyes: Still, you live and learn. I wish I could get the last few hours back!