• 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
Re: Can't sort NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't sort NSTableView


  • Subject: Re: Can't sort NSTableView
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 19 Jun 2008 16:38:19 +0000
  • Thread-topic: Can't sort NSTableView

> On Thu, Jun 19, 2008 at 5:16 PM, Trygve Inda <email@hidden> 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


_______________________________________________

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: Can't sort NSTableView
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Spaces bug when [NSTextView complete:] called?
  • Next by Date: Re: NSURLRequest conditional GET
  • Previous by thread: Can't sort NSTableView
  • Next by thread: Re: Can't sort NSTableView
  • Index(es):
    • Date
    • Thread