Re: Can I mark a day as Holiday in iCal app.
Re: Can I mark a day as Holiday in iCal app.
- Subject: Re: Can I mark a day as Holiday in iCal app.
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 1 Mar 2004 23:07:57 -0800
There may be some convenience methods or some third-party APIs out
there somewhere, but I know nothing of them. I can point you in the
right direction though:
The calendars are stored in ~/Library/Calendars/ . To add a new
calendar, create a new .ics file; to add a new event to an existing
calendar, add it to the desired calendar file. The format is
relatively straight-forward, as I recall.
The dates of recurring events can be found by adding time intervals to
an existing date. If the event recurs weekly, you could use something
like: [myEventRecurrence initWithTimeInterval:(60 * 60 * 24 * 7)
sinceDate:myEventDate];.
Or, for giggles, we can build an array of the next 100 recurrences,
including the original:
NSMutableArray *myDateArray = [[NSMutableArray alloc] init];
int i;
for(i = 0; i < 100; ++i)
{
[myDateArray addObject:[[NSDate alloc] initWithTimeInterval:(i * 60 *
60 * 24 * 7) sinceDate:myEventDate]];
}
Hope this helps.
-- Daniel Currie
On 2004 Mar 30, at 22:19, Sunil wrote:
Hi all,
I want to integrate my app with iCal,
-Can I mark a day as Holiday in iCal app.
-Can I access an event's dates ( if that event is recurring, how can
I know what day the event includes...)
Can anyone help...
-sunil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.