Re: Sorting in an NSTableView
Re: Sorting in an NSTableView
- Subject: Re: Sorting in an NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 11 Jul 2003 11:38:35 +0200
On Friday, July 11, 2003, at 12:40 AM, Graham Savage wrote:
Hi,
Newbie Cocoa-Java app programmer.
I have an NSTableView with 3 columns.
I would like to be able to sort on any column, highlight the sorted
column header and draw some indicator in the column header to indicate
sort direction.
Is there anything to assist with this or do I have to listed to clicks
on a header cell and do everything 'manually'?
Also, how does one achieve the nice striping on the rows a la iTunes?
For the stripping, I would have recommended TableTester sources but I
just found yesterday that the drawing may be incorrect in some cases.
For the sorting, you can find some sample code here:
http://s.sudre.free.fr/files/samplesort.tar.gz
_______________________________________________
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.