Ordering all day events via CalCalendarStore API
Ordering all day events via CalCalendarStore API
- Subject: Ordering all day events via CalCalendarStore API
- From: Brad Willoughby <email@hidden>
- Date: Wed, 2 Apr 2008 10:07:01 -0700
Is it possible to define the ordering in iCal of all day events
created via the CalCalendarStore API?
I'm looping through a list of sorted items that I would like to appear
in the same order in iCal. However, it looks like iCal does not honor
the item creation order and I don't see any API for display
sequencing. The creation code looks something like this:
for (MyItem *item in collection.sortedItems) {
if (!item.isSynced) {
CalEvent *event = [CalEvent event];
event.calendar = [[CalCalendarStore defaultCalendarStore]
calendarWithUID:self.calCalendarUID];
event.title = item.name;
event.notes = item.details;
event.startDate = event.endDate = item.date;
event.isAllDay = YES;
NSError *error;
[[CalCalendarStore defaultCalendarStore] saveEvent:event
span:CalSpanThisEvent error:&error];
}
}
Any input is appreciated.
Cheers,
Brad Willoughby
TinyPlanet Software, LLC
http://tinyplanetsoftware.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