Sorting a list in NSTableView
Sorting a list in NSTableView
- Subject: Sorting a list in NSTableView
- From: Aaron Patterson <email@hidden>
- Date: Fri, 5 Dec 2003 22:15:43 -0800
First, I'm still pretty new with cocoa, so please be gentle.
I have a list of data that I'm displaying in an NSTableView. I would like to
sort the information by the column that the user selects to sort the list (sort
of like iTunes).
The way I read about (and tried a sample program) used the
tableView:didClickTableColumn method to sort the list. I've noticed, however
when I select the NSTableColumn in Interface Builder that there is a sort key
and a sort selector I can specify. Can I used these fields to sort my list?
I assumed that the sort selector would have been called on my list, but it
didn't seem to happen. What exactly is the sort key?
Thanks for the help!
--Aaron
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.