• 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
NSPredicateEditor and date comparisons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicateEditor and date comparisons


  • Subject: NSPredicateEditor and date comparisons
  • From: Josh Abernathy <email@hidden>
  • Date: Sun, 7 Dec 2008 14:14:00 -0500

Hi all,

In my application, users have the option of comparing to a date in an NSPredicateEditor. For the NSDates it is comparing against, only the date is important; time doesn't matter.

The interesting thing I found about NSPredicateEditor is the NSTimeInterval it compares my NSDates to has the time set to 13:41:40. That means my NSDates with the default 12:00:00 time don't match an "is" predicate. It's not a big deal because I can just change my NSDate's time to 13:41:40 to fix the problem.

But what I'm wondering is if this is guaranteed to always be true. I couldn't find it anywhere in the documentation.

Thanks,
Josh
_______________________________________________

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


  • Follow-Ups:
    • Re: NSPredicateEditor and date comparisons
      • From: Chris Idou <email@hidden>
  • Prev by Date: Re: What is the best way to get an NSSlider to respond to the mouse scroll wheel?
  • Next by Date: Re: 3-float struct?
  • Previous by thread: NSPredicateEditor and date comparisons
  • Next by thread: Re: NSPredicateEditor and date comparisons
  • Index(es):
    • Date
    • Thread