Calendar Store has no API to distinguish between event and reminder calendars

Originator:zacharias.pasternack
Number:rdar://10980542 Date Originated:3/4/12
Status:Open Resolved:
Product:Mac OS X SDK Product Version:10.7
Classification:Enhancement Reproducible:Alwyas
 
04-Mar-2012 10:24 AM Zacharias Pasternack:
Summary:
CalCalendar objects fall into two categories: task calendars, and event calendars.  However, there is no API in CalCalendar (or anywhere else in Calendar Store) which is able to distinguish between the two.  

Steps to Reproduce:
NSArray* calendars = [[CalCalendarStore defaultCalendarStore] calendars];
for( CalCalendar* aCalendar in calendars ) {
    NSLog( @"calendar: %@", aCalendar );
}

Expected Results:
A property or some other mechanism to distinguish between task calendars and event calendars.

Actual Results:
No such property or mechanism exists.  Output from the above code:
calendar: CalCalendar <0x6e04d10> {UID = 8AA8FFAD-D781-47F7-9231-CF66E1753983; title = Work; notes = (null); color = NSCalibratedRGBColorSpace 0.054902 0.380392 0.72549 1; type = CalDAV; editable = 1}
calendar: CalCalendar <0x6e05000> {UID = A7F4A1B2-D1CF-4A20-9F84-CD1A1E99773E; title = Home; notes = ; color = NSCalibratedRGBColorSpace 0.72549 0.054902 0.156863 1; type = CalDAV; editable = 1}
calendar: CalCalendar <0x6e050f0> {UID = 43B14D2A-9976-461C-8EFE-5FA029381828; title = Personal; notes = (null); color = NSCalibratedRGBColorSpace 0.901961 0.784314 0 1; type = CalDAV; editable = 1}
calendar: CalCalendar <0x6e05140> {UID = F42EC365-20AC-4251-B45E-FB7F169928F0; title = Mac; notes = (null); color = NSCalibratedRGBColorSpace 0.054902 0.380392 0.72549 1; type = Local; editable = 1}
calendar: CalCalendar <0x6e05190> {UID = FF771FF9-3969-4001-BBA4-9B7B00E80291; title = Cloud 2; notes = (null); color = NSCalibratedRGBColorSpace 0.054902 0.380392 0.72549 1; type = CalDAV; editable = 1}
calendar: CalCalendar <0x6e051e0> {UID = 40234537-869C-4CC2-89B9-DD4F7D36C169; title = Groceries; notes = ; color = NSCalibratedRGBColorSpace 0.443137 0.101961 0.462745 1; type = CalDAV; editable = 1}

Regression:
Mac OS X 10.7

Notes:
Any app that handles events or tasks would need to be able to distinguish between the two types of calendars.  For example, an app might want to display a list of calendars for the user to add an event to.  Without being able to discern between event and task calendars, the app would need to list task calendars along with event calendars; not a good user experience.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!