Re: Stopping a TableView being sortable
Re: Stopping a TableView being sortable
- Subject: Re: Stopping a TableView being sortable
- From: Matt Gough <email@hidden>
- Date: Wed, 21 Dec 2005 12:43:10 +0000
On 21 Dec 2005, at 12:06, mmalcolm crawford wrote:
I am sure I must have overlooked something here, but how do I
create a TableView that can't be sorted?
My table has one column with a visible header and is bound to an
an ArrayController that returns an array of strings which I always
want displayed in the order they are in the array.
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
"Disabling sorting in a tableview"
Thanks, that sorted it out :)
It wasn't something you'd be able to figure out from the Apple docs
alone though, so maybe they need updating.
Bizarrely I have been to your site multiple times recently, but must
have totally overlooked that section.
On a related note, what should I do to set the initial sort column
and order of a table? Is it simply [NSTableView
setSortDescriptors:descriptors]?
Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden