• 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
Fetching a CalEvent with earliest startDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fetching a CalEvent with earliest startDate


  • Subject: Fetching a CalEvent with earliest startDate
  • From: Lee Gillen <email@hidden>
  • Date: Mon, 4 Feb 2008 07:41:21 -0500
  • Resent-date: Mon, 4 Feb 2008 07:48:29 -0500
  • Resent-from: Lee Gillen <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

Given an array of CalEvents how can I fetch a single CalEvent with the earliest startDate?

I am getting an array of CalEvents from:
NSArray *calendarEvents = [[CalCalendarStore defaultCalendarStore] eventsWithPredicate:eventsPredicate];


I don't see any method in NSPredicate or NSExpression that allows me to do an evaluation function @min on an object's date value ivar.

Any help is appreciated.

Lee
_______________________________________________

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: Fetching a CalEvent with earliest startDate
      • From: Lee Gillen <email@hidden>
  • Prev by Date: Re: ContextualMenu in text
  • Next by Date: Re: Updating the trash icon without NSWorkspace
  • Previous by thread: Re: ContextualMenu in text
  • Next by thread: Re: Fetching a CalEvent with earliest startDate
  • Index(es):
    • Date
    • Thread