Sort ordering and custom cells
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