Re: Sort ordering and custom cells [fixed]

2010-07-13 Thread Gideon King
I found the problem. It was that I was looking in my source array using objectAtIndex:row, which is the actual row in the table as displayed. Seeing as my array is not sorted - it just has sort descriptors applied, I was getting the wrong value from my data array. I resolved the issue by creat

Re: Sort ordering and custom cells

2010-07-13 Thread Gideon King
Thanks for trying to help, but I'm not sure the meaning of your answer, or what other information I could provide about the situation. Could you please clarify? Regards Gideon On 14/07/2010, at 5:29 AM, Keary Suska wrote: > On Jul 13, 2010, at 10:38 AM, Gideon King wrote: > >> Hi, >> >> I ha

Re: Sort ordering and custom cells

2010-07-13 Thread Keary Suska
On Jul 13, 2010, at 10:38 AM, Gideon King wrote: > 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 differe

Sort ordering and custom cells

2010-07-13 Thread Gideon King
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 tha