• 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: Table column sorting for ImageAndTextCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table column sorting for ImageAndTextCell


  • Subject: Re: Table column sorting for ImageAndTextCell
  • From: Joar Wingfors <email@hidden>
  • Date: Tue, 9 Jun 2009 06:54:20 -0700


On 9 jun 2009, at 02.59, Arun wrote:

I have an application in which i have binded table column to display a
custom cell which consists of ImageAndText.
I need to implement sorting on the table column based on Text in the custom
cell. Any idea on how we can achieve this?


Hello Arun,

You don't sort your cells, you sort the data that's backing your table view, so the fact that you're using image-and-text cells doesn't really change anything. If you're using bindings, an easy way to provide sorting is to use sort descriptors on the array controller.

j o a r


_______________________________________________

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: 
 >Table column sorting for ImageAndTextCell (From: Arun <email@hidden>)

  • Prev by Date: Re: How to tell if a Panel is Open
  • Next by Date: Re: [NSTask] -launch return
  • Previous by thread: Table column sorting for ImageAndTextCell
  • Next by thread: Is Toggling Text Color Still State of the Art for Disabling Static Text
  • Index(es):
    • Date
    • Thread