• 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
Sorting NSTableView using Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting NSTableView using Bindings


  • Subject: Sorting NSTableView using Bindings
  • From: Paul Johnson <email@hidden>
  • Date: Mon, 05 Nov 2012 12:03:02 -0600

I have an NSTableView in a drawer. I'm using Core Data and I'm trying
to have the drawer opening and showing the table rows sorted by the
first column.. but have been unsuccessful.

I can sort the table by clicking on column headers, but when the
drawer is opened the data is unsorted.

Obviously I don't have the bindings set properly but I've tied many
things all to no avail.

I've selected the Table View and clicked on tab to select the Bindings
inspector. Under the Table Content heading I found Sort Descriptors,
and it is there that I'm focusing. (For example, I've checked the
"Bind to" box and selected the Array Controller responsible for
managing the table data. Then for Controller Key I have
"arrangedObjects" and for "Model Key Path" I have the key associated
with the first column. This isn't doing what I want; I get a
"doesNotRecognizeSelector" exception thrown.)

Can someone give me some advice?
_______________________________________________

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: Sorting NSTableView using Bindings
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: OS_OBJECT_USE_OBJC_RETAIN_RELEASE and xpc_release()
  • Next by Date: Re: This board is slow. Was: OS_OBJECT_USE_OBJC_RETAIN_RELEASE and xpc_release()
  • Previous by thread: Re: REST, SOAP, XML-RPC, ...?
  • Next by thread: Re: Sorting NSTableView using Bindings
  • Index(es):
    • Date
    • Thread