• 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: Stopping a TableView being sortable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Stopping a TableView being sortable (From: Matt Gough <email@hidden>)
 >Re: Stopping a TableView being sortable (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Cocoa multithreading in C (terrible idea, isn't it?)
  • Next by Date: Re: Testing universal binary one the cheap
  • Previous by thread: Re: Stopping a TableView being sortable
  • Next by thread: Lots of items in an NSOutline view.
  • Index(es):
    • Date
    • Thread