• 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
NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView


  • Subject: NSTableView
  • From: Carlos Coutinho <email@hidden>
  • Date: Wed, 22 Feb 2006 14:40:04 +0100

Hi,
Need to confirm a thing about sorting in a TableView.
I've got a very simple data model runing. Ive created a datasource to control my data and confirms to requested methods to pass the data to a TableView.
I want to implement on this data sorting as it opens. I've managed to implement data on the array and then, with a [tableView reload] data appeared sorted. But I can't figure out a way to get my data array as it is and do the sorting only on the tableview.
Doing the sorting on the tableview I would like to have a default sort when the app opens, when I load new data or when I add some data.
How can I do that?
with: sortDescriptorsDidChange I manage to put this working when I click on the column header.
with: sortUsingDescriptors I can sort an array
How can I sort all the data on a tableView?


_Carlos Coutinho_

PS: I don't want to use bindings _______________________________________________
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
  • Prev by Date: Re: NSScriptCoercionHandler ?
  • Next by Date: Re: CFPrefDockItems sample code. Where did it go?
  • Previous by thread: Re: NSTableView
  • Next by thread: [CORE DATA] Custom accessors question
  • Index(es):
    • Date
    • Thread