• 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
Sort ordering and custom cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sort ordering and custom cells


  • Subject: Sort ordering and custom cells
  • From: Gideon King <email@hidden>
  • Date: Wed, 14 Jul 2010 02:38:54 +1000

Hi,

I have an NSTableView bound to an NSArrayController, which gets its data from an NSMutableArray of objects.

One column of my table is set up as a button cell where I use tableView:dataCellForTableColumn:row: to return a different button cell (or sometimes nil) depending on the data for that row.

When I sort the table, the buttons are not sorted - they just stay in the row they were in. Ditto for when I add new rows.


What's a good way to fix this?



Thanks

Gideon






_______________________________________________

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

  • Follow-Ups:
    • Re: Sort ordering and custom cells
      • From: Keary Suska <email@hidden>
  • Prev by Date: [Q] Is this a bug in MPMoviePlayerController? Then how to work around?
  • Next by Date: NSURLConnection and authenticating against OpenID
  • Previous by thread: [Q] Is this a bug in MPMoviePlayerController? Then how to work around?
  • Next by thread: Re: Sort ordering and custom cells
  • Index(es):
    • Date
    • Thread