Re: Sorting problems with NSArrayController and a value transformer
Re: Sorting problems with NSArrayController and a value transformer
- Subject: Re: Sorting problems with NSArrayController and a value transformer
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 10 May 2005 00:02:59 -0700
On May 9, 2005, at 11:50 PM, Tom Birch wrote:
I managed to solve this with a category for NSArray (implementing -
compare:),
This is probably not the Right Thing to do.
but I still don't understand why the value transformer isn't being
used to aid sorting
The value transformer transforms the property for display purposes.
If you want to sort on a "transformed" attribute, then you should
implement a suitable accessor in your Record class to return such
that can then be compare:d.
mmalc
_______________________________________________
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