• 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
CalendarStore eventPredicateWithStartDate question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CalendarStore eventPredicateWithStartDate question


  • Subject: CalendarStore eventPredicateWithStartDate question
  • From: Dale Jensen <email@hidden>
  • Date: Tue, 21 Oct 2008 10:15:25 -0500

In attempting to read events from the CalendarStore for a specific calendar and expansive time period, I'm using:

eventPredicateWithStartDate:endDate:calendars:

The existance of, and documentation for, this other implementation:

eventPredicateWithStartDate:endDate:UID:calendars:

implies that the first call would only return one instance of a recurring event, but it does not. If I have a weekly event and my time period is two years, I get 104 events back, all with the same UID (different dates, though, of course.)

I realize that I can filter the events myself manually, but is there an better way to go about this? All I really want to get back are the unique events over the time period, and if you had a reasonably complicated calendar with dozens of recurring events, this call could easily start to return thousands of objects, which seems a little inefficient.

Thanks!


dale

--
Dale Jensen, CEO
Ntractive, LLC
email@hidden
http://www.ntractive.com

_______________________________________________

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


  • Prev by Date: Re: Properly supporting 'delete' key presses in NSTableView
  • Next by Date: Putting an image on a CALayer
  • Previous by thread: Re: Toolbar buttons and isEnabled binding
  • Next by thread: Putting an image on a CALayer
  • Index(es):
    • Date
    • Thread