Re: Custom compare: for NSDate sort descriptor
Re: Custom compare: for NSDate sort descriptor
- Subject: Re: Custom compare: for NSDate sort descriptor
- From: Keary Suska <email@hidden>
- Date: Mon, 08 Oct 2007 18:29:12 -0600
- Thread-topic: Custom compare: for NSDate sort descriptor
on 10/8/07 5:07 PM, email@hidden purportedly said:
> I have a table column with NSDate values. I simply want to sort
> "blank" dates AFTER the last date rather than before the earliest
> date (which is the behavior of the standard compare:).
>
> From what I can tell, the best route would be to add a category to
> NSDate and implement a custom compare: method?
Probably, but don't override -compare:. Instead, create a custom method and
use sort descriptors.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden