Skip navigation.
 
mlRe: NSSortDescriptor not working with array of custom classes
FROM : Shawn Erickson
DATE : Mon Nov 05 00:05:11 2007

On Nov 4, 2007, at 2:50 PM, Ken Tozier wrote:

>

>> On Oct 19, 2007, at 2:26 PM, Jim Correia wrote:
>>

>>> Have you been able to isolate the behavior down to a standalone 
>>> sample?
>>>
>>> I find that to be useful because it shows me my bug, or gives me 
>>> something I can dump directly into radar. If you do that, send me 
>>> the sample too, because I'm curious what is going on here :-)
>>>

>
> Well I ran into this problem again with another class and after 
> several hours of head scratching,  it appears that when initializing 
> sort descriptors you *must* use the actual name of any property you 
> want to sort on. You can't use accessors to those properties.


Can you post a complete code sample that shows the problem you are 
reporting. We are having to guess at what your class(es) involved 
really look like. You can simplify it down to some thing that shows 
the issue you having.

Anyway you are doing things that I shouldn't have to do...

-Shawn

Related mailsAuthorDate
mlRe: NSSortDescriptor not working with array of custom classes Ken Tozier Nov 4, 23:50
mlRe: NSSortDescriptor not working with array of custom classes Shawn Erickson Nov 5, 00:05
mlRe: NSSortDescriptor not working with array of custom classes Ken Tozier Nov 5, 00:25
mlRe: NSSortDescriptor not working with array of custom classes Shawn Erickson Nov 5, 02:07