iCal Private Framework
Seems its possible to use the private ical framework in System/Library/PrivateFrameworks/CALCore.framework to access ical and do stuff with it.
This post on the Cocoa mailing list archives has info about it and some code.
So far ive managed to add to it and can get single event info. The event date structure is giving me headaches though, cant figure out how to access the info in it, but ill work it out or die trying.
e.g.
doing somthing like:
[anEvent summary];
returns the event summary info, and this works for uid as well, but date doesnt work. If i output the entire event object:
NSLog(“%@”, anEvent);
I can see the following fields in an event object:
DTEND, DTSTAMP, DTSTART, SEQUENCE, SUMMARY, UID
Like i said summary and uid are easy to get, but the DT items (which relate to the event date) are harder to get. It looks like each of them is a mutable dictionary, but hrmmm, im not sure.
So yeah, thats where im at.