Add event to calendar with EventKit Mountain Lion
===


I added the framework EventKit and I have this code. I can't add an event at default calendar.


    #import "Calendar.h"
    #import <EventKit/EventKit.h>

    @implementation Calendar

    -(IBAction)addCal:(id)sender{
   
    EKEventStore *store = [[EKEventStore alloc] initWithAccessToEntityTypes:EKEntityMaskEvent];
    EKEvent *evento = [EKEvent eventWithEventStore:store];

    [evento setStartDate:[NSDate date]];
    [evento setTitle:@"Title"];
        
    [evento setCalendar:[store defaultCalendarForNewEvents]];

    NSError *error;
    [EKEventStore saveEvent:evento span:EKSpanThisEvent error:&error];
    
    }

I'm a beginner and with many difficult I can't find some example for OS X.
Thanks for help.
