• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bug: CalendarStore framework adding events with alarms with email address.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: CalendarStore framework adding events with alarms with email address.


  • Subject: Bug: CalendarStore framework adding events with alarms with email address.
  • From: jon <email@hidden>
  • Date: Sun, 13 Sep 2009 11:35:16 -0600

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 "email@hidden", 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 = @"email@hidden";
		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 "email@hidden".
the actual event alarm will correctly send an email to "email@hidden " though. it will just have the wrong email displayed in the iCal event.. annoying, but atleast it will work.


Jon.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: CoreData Bug? (SQLite vs XML)
  • Next by Date: sprintf and 64-bit integers
  • Previous by thread: Re: Grand Central Dispatch vs CFRunLoop
  • Next by thread: sprintf and 64-bit integers
  • Index(es):
    • Date
    • Thread