NSPredicate & dates
NSPredicate & dates
- Subject: NSPredicate & dates
- From: Chris Blunt <email@hidden>
- Date: Wed, 24 Aug 2005 02:37:05 +0100
Hi,
Can anyone point me in the direction of how to compare dates in an
NSPredicate? My date is stored as an NSCalendarDate* in my model
class. I would like the filterPredicate (search field or smart-group)
to be able to return records where for example 'date is in the last
30 days', as in iTunes etc. I have got the filter working fine for
things such as "amount == 0" or "notes contains 'string'", but dates
seem not to be covered by NSPredicate?
Many thanks,
Chris
--
www.chrisblunt.com
_______________________________________________
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