1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

NSCalendarDate in NSTableView

Discussion in 'Mac Programming' started by stadidas, Jan 15, 2007.

  1. macrumors regular

    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!
  2. macrumors regular

    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!

Share This Page