• 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: NSMutableArray, TableView, Bindings and Sorting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray, TableView, Bindings and Sorting


  • Subject: Re: NSMutableArray, TableView, Bindings and Sorting
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 26 Jul 2004 11:43:22 -0700

On Jul 26, 2004, at 9:55 AM, email@hidden wrote:
Hmm. The way I did, did return a sorted array.

From your original post:

what's the best way of sorting the actual array, and making sure the table view is updated - or
making sure the array is sorted, when the column table heading is clicked.

My understanding of the question is that you want to know the "correct" way to implement sorting in the table view using the array controller(*)? The correct way is to implement -arrangeObjects:, which will then be called as and when necessary.

Which example shows sorting? I can't see which one does.

The examples in the section "Filtering Array Controller + Object Initlialisation", and the last two (Combatants and many-to-many) show the use of arrangeObjects...

(*) I'm also assuming that there's no way to get automatic sorting using the Sort {Key, Selector, Order} on the table column.

mmalc
_______________________________________________
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.


References: 
 >Re: Re: NSMutableArray, TableView, Bindings and Sorting (From: <email@hidden>)

  • Prev by Date: Re: [Feature-Nag] Ability to call modal dialogs/sheets with input?
  • Next by Date: Build objects at runtime
  • Previous by thread: Re: Re: NSMutableArray, TableView, Bindings and Sorting
  • Next by thread: Re: Re: NSMutableArray, TableView, Bindings and Sorting
  • Index(es):
    • Date
    • Thread