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

Sorting a list in NSTableView


  • Subject: Sorting a list in NSTableView
  • From: Aaron Patterson <email@hidden>
  • Date: Fri, 5 Dec 2003 22:15:43 -0800

First, I'm still pretty new with cocoa, so please be gentle.

I have a list of data that I'm displaying in an NSTableView. I would like to
sort the information by the column that the user selects to sort the list (sort
of like iTunes).

The way I read about (and tried a sample program) used the
tableView:didClickTableColumn method to sort the list. I've noticed, however
when I select the NSTableColumn in Interface Builder that there is a sort key
and a sort selector I can specify. Can I used these fields to sort my list?
I assumed that the sort selector would have been called on my list, but it
didn't seem to happen. What exactly is the sort key?

Thanks for the help!

--Aaron
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSTextField has cursor in it?
  • Next by Date: best way to save document level settings?
  • Previous by thread: Re: NSArrayController observing
  • Next by thread: best way to save document level settings?
  • Index(es):
    • Date
    • Thread