I have an NSTableView that is done using the typical IB and data bindings. It works well.
However I need to put in a Segmented Control to indicate date range. So for example, if user clicks on the "Last Year" segmented control button, the table should only display records for last year.
I looked at the data binding options in IB for the NSArrayController, but I have no idea how to do this.
Can somebody point me in the right direction please?
*Update:
The app I'm working on has 3 SegmentedControl buttons -- "This Year", "Last Year", "Total", and a tableview that displays the records associated with the year selection the user selected. So selecting the "This Year" will reload the tableview with records for the current year, and selecting "Last Year" will reload the table to show last year records.