• 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
Bindings, Transformers and Sorting Table Columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings, Transformers and Sorting Table Columns


  • Subject: Bindings, Transformers and Sorting Table Columns
  • From: Dave MacLachlan <email@hidden>
  • Date: Thu, 16 Mar 2006 15:48:46 -0800

Hello all...

So I've got a table with a column which is bound to an NSArrayController. The binding has a value transformer upon it that changes the items in the array to one that is nicely viewable in a table (Foos). I don't have (much) control over the methods that the items in the array have as they are NSMetadataItems.

What I would like to do is be able to sort based on a key I send to my Foos. It appears if I set a sort key in IB, that it tries to use the key on the NSMetadataItems instead of on my Foos, which seems unintuitive to me based on how I think transformers should work.

Is there an easy way to get it to sort based on a key in my Foos?

Also, since the documentation is lacking in the extreme, what does the "Creates Sort Descriptor" option do in for NSTableColumnView bindings?

Cheers,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bindings, Transformers and Sorting Table Columns
      • From: Matt Gough <email@hidden>
    • Re: Bindings, Transformers and Sorting Table Columns
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: saving jpegs
  • Next by Date: How do I do KVC/KVO for struct properties
  • Previous by thread: Re: Cocoa Developer Wanted Sydney Australia
  • Next by thread: Re: Bindings, Transformers and Sorting Table Columns
  • Index(es):
    • Date
    • Thread