• 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
sort an nstablecolumn to button cell state?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort an nstablecolumn to button cell state?


  • Subject: sort an nstablecolumn to button cell state?
  • From: Michael Hanna <email@hidden>
  • Date: Thu, 16 Sep 2010 16:09:15 -0400

I have an NSTableColumn in an NSTableView that has only an
NSButtonCell(checkbox). When the user clicks the table column header I'd
like it to sort the table items according to whether or not the checkbox is
selected. so the end result is that all checked items are grouped
together(and all unchecked are grouped together).

Any suggestions on how to do this? I'm aware of the the Sort Key field in
the Attributes inspector, but it's not obvious to me whether or not this
will help. I've also set the sort descriptors on the tableview's array
controller but selection state isn't a property but is derived from from
other information.

Michael
_______________________________________________

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: sort an nstablecolumn to button cell state?
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Cocoa Borderless Panel causes issues in PowerPlant/Carbon
  • Next by Date: Re: Scripting Bridge Strange Pauses
  • Previous by thread: Re: NSOutlineView auto expand threshold
  • Next by thread: Re: sort an nstablecolumn to button cell state?
  • Index(es):
    • Date
    • Thread