Re: Bindings, Transformers and Sorting Table Columns
Re: Bindings, Transformers and Sorting Table Columns
- Subject: Re: Bindings, Transformers and Sorting Table Columns
- From: Matt Gough <email@hidden>
- Date: Fri, 17 Mar 2006 10:57:48 +0000
On 16 Mar 2006, at 23:48, Dave MacLachlan wrote:
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.
This sounds a lot like the question I asked last week: 'Array
controller sorting vs ValueTransformers'
The 'solution' was to add a category to the underlying class (in your
case NSMetadataItems).
Matt Gough
_______________________________________________
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