FROM : Trygve Inda
DATE : Thu Jun 19 18:38:19 2008
> On Thu, Jun 19, 2008 at 5:16 PM, Trygve Inda <<email_removed>> wrote:
>
>> I have an NSTableView tied to an NSArrayController
>>
>> After I populate the array, the table does show the data via bindings on
>> each of the columns. However, clicking a column header does nothing - how
>> can I make it sort?
>
> I'd guess you're missing a sortDescriptors binding from the table to
> the array controller.
Actually, in addition to the column bindings, I had the whole table bound to
the array - unbinding this seems to have fixed it.
Is there ever a reason to bind a table to an array - rather than just
binding columns to keys?
Thanks for the check tho!
Trygve
DATE : Thu Jun 19 18:38:19 2008
> On Thu, Jun 19, 2008 at 5:16 PM, Trygve Inda <<email_removed>> wrote:
>
>> I have an NSTableView tied to an NSArrayController
>>
>> After I populate the array, the table does show the data via bindings on
>> each of the columns. However, clicking a column header does nothing - how
>> can I make it sort?
>
> I'd guess you're missing a sortDescriptors binding from the table to
> the array controller.
Actually, in addition to the column bindings, I had the whole table bound to
the array - unbinding this seems to have fixed it.
Is there ever a reason to bind a table to an array - rather than just
binding columns to keys?
Thanks for the check tho!
Trygve
| Related mails | Author | Date |
|---|---|---|
| Trygve Inda | Jun 19, 18:16 | |
| Trygve Inda | Jun 19, 18:38 | |
| mmalc crawford | Jun 19, 19:24 | |
| Brent Fulgham | Jun 19, 19:46 | |
| Michael Kaye | Jun 19, 19:53 |






Cocoa mail archive

