• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPredicate & dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSPredicate & dates
      • From: Mark Ackerman <email@hidden>
  • Prev by Date: Re: Command line parameters...
  • Next by Date: Slightly OT (Rant: Problems with CIImageAccumulator and friends)
  • Previous by thread: RE: MiscKit, MOKit, etc.
  • Next by thread: Re: NSPredicate & dates
  • Index(es):
    • Date
    • Thread