• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling sorting in a programatically generated table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Disabling sorting in a programatically generated table (From: Ken Tozier <email@hidden>)

  • Prev by Date: NSFileHandle or a better way?
  • Next by Date: Re: NSFileHandle or a better way?
  • Previous by thread: Disabling sorting in a programatically generated table
  • Next by thread: Re: Disabling sorting in a programatically generated table
  • Index(es):
    • Date
    • Thread