I will be making a bug report for this, but this is here on the list to show that this can work, if you ignore the result displayed in iCal.

If you have your address book filled out with your own card with your own email of for example "myem...@me.com", not other emails in your card.

and then create a program with code like this that adds a calendar event in iCal like this with an alarm that has an email type of alarm event:

#import <Cocoa/Cocoa.h>
#import <CalendarStore/CalendarStore.h>
#import <CalendarStore/CalEvent.h>

        CalEvent *newEvent = [CalEvent event];
        CalAlarm *alarm3 = [CalAlarm alarm];
        NSError *err;
        CalCalendar *AuctionAlarmCalendar = [CalCalendar calendar];

                alarm3.action = CalAlarmActionEmail;
                alarm3.emailAddress = @"mynewem...@me.com";
                alarm3.relativeTrigger = -nuUnit3;
                [newEvent addAlarm:alarm3];

[[CalCalendarStore defaultCalendarStore] saveEvent:newEvent span:CalSpanThisEvent error:&err];


the iCal event will have a properly set up event with alarm, but the email address will display "myem...@me.com". the actual event alarm will correctly send an email to "mynewem...@me.com " though. it will just have the wrong email displayed in the iCal event.. annoying, but atleast it will work.

Jon.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to