Calendar Store

Discussion in 'Mac Programming' started by dashXcode, Oct 2, 2007.

Thread Status:
Not open for further replies.
  1. dashXcode macrumors newbie

    Joined:
    Oct 2, 2007
    #1
    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
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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.
     
  3. bousozoku Moderator emeritus

    Joined:
    Jun 25, 2002
    Location:
    Gone but not forgotten.
    #3
    Sorry but you can't discuss any part of Leopard that hasn't been made public somehow.
     
Thread Status:
Not open for further replies.

Share This Page