Bindings, Transformers and Sorting Table Columns
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