is there any objective C API or object that can give me access to the iCal and its events? I need to read the calendar events for a given date and optionally set a new event.
The code is either plain C or objective C (in the GUI version of the program). I'm using xcode on a mac os 10.6.
Sample code is greatly appreciated.
You might find it easier to use iCal's Apple Events scripting interface. If you don't like the idea of using AppleScript directly, there is Apple's Scripting Bridge or, even better, use Appscript for Objective-C, Ruby, or Python. Here's one way to access and modify the events for a given day using py-appscript: