FROM : Brad Willoughby
DATE : Wed Apr 02 19:07:01 2008
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/
DATE : Wed Apr 02 19:07:01 2008
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/
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

