Re: Disabling sorting in a programatically generated table
Re: Disabling sorting in a programatically generated table
- Subject: Re: Disabling sorting in a programatically generated table
- From: Keary Suska <email@hidden>
- Date: Fri, 30 Jan 2009 08:52:38 -0700
On Jan 30, 2009, at 1:59 AM, Ken Tozier wrote:
Hi
I need to completely disable sorting in a programatically generated
table, but have found that no matter what I try, clicking on the
column header sorts the table. I've set the following sort
descriptors to nil
// On the table
[table setSortDescriptors: nil];
// On the column
[column setSortDescriptorPrototype: nil];
// And on the array controller for each column
[controller setSortDescriptors: nil];
[controller setAutomaticallyRearrangesObjects: NO];
How do you shut down all sorting on a table?
When you call -bind: do you pass NSCreatesSortDescriptorBindingOption
NO?
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden