On Jun 19, 2008, at 9:38 AM, Trygve Inda 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?

<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
-> Disabling sorting in a tableview

mmalc

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to