Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.

dashXcode

macrumors newbie
Original poster
Oct 2, 2007
1
0
Hi, I'm playing around with Apple's new framework CalendarStore. But the problem is it's not working! I'm trying to add a new event to iCal. I was successfully to add a new calendar, but when I tried to add a new event it didn't work!
This is my code:
HTML:
    NSError *calError;
	CalEvent *event = [CalEvent event];
	event.calendar = @"Work";
	event.title = @"Calendar Store Test";
	event.startDate = [NSDate dateWithNaturalLanguageString:@"3pm October 9, 2007"];
	event.endDate = [NSDate dateWithNaturalLanguageString:@"4pm October 9, 2007"];
	[[CalCalendarStore defaultCalendarStore] saveEvent:event span:CalSpanThisEvent error:&calError];
In console i found this error message:
*** -[NSCFString isEditable]: unrecognized selector sent to instance 0x3100

What's wrong with my code?
Thank you in advancer
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
You can't discuss this stuff publicly since you are under an NDA (assuming you are a paid ADC member).

All I can suggest is to read the documentation on Apple's Leopard Dev Center and figure it out on your own, or wait until Leopard is released.
 

bousozoku

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
Sorry but you can't discuss any part of Leopard that hasn't been made public somehow.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.