• 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
Ordering all day events via CalCalendarStore API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Question about NSOutlineView and NSTreeController
  • Next by Date: CoreData NSTextView changes: not noticed with KVO, not accessible from program, but stored anyway
  • Previous by thread: Question about NSOutlineView and NSTreeController
  • Next by thread: CoreData NSTextView changes: not noticed with KVO, not accessible from program, but stored anyway
  • Index(es):
    • Date
    • Thread