| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/CalendarStore.framework |
| Availability | Available in Mac OS X v10.5 and later.
|
| Companion guide | |
| Declared in | CalCalendar.h |
A CalCalendar object represents a calendar in iCal.
Use the calendar method to create a CalCalendar object directly, or use the CalCalendarStore calendars method to get an array of all the calendar objects. If you know the calendar UID, use the calendarWithUID: CalCalendarStore method to get the associated calendar object.
Use the properties in this class to get attributes about a calendar—for example, use the properties to get the title and color of a calendar. Use the eventsWithPredicate: and tasksWithPredicate: CalCalendarStore methods to fetch associated events and tasks.
If you retain CalCalendar objects, then register for the CalCalendarsChangedNotification notification.
For more about Objective-C properties, see “Properties” in The Objective-C 2.0 Programming Language.
The calendar’s color.
@property(copy) NSColor * color;
CalCalendar.hA Boolean value indicating whether the calendar is editable or not.
@property(readonly) BOOL isEditable;
Set to YES if the calendar is editable; otherwise, NO.
CalCalendar.hTextual notes about the calendar.
@property(copy) NSString * notes;
CalCalendar.hThe calendar’s title.
@property(copy) NSString * title;
CalCalendar.hThe type of calendar.
@property(readonly) NSString * type;
The value of this property is one of the constants described in “Calendar Types”.
CalCalendar.hA unique identifier for the receiver.
@property(readonly) NSString * uid;
CalCalendar.hCreates and returns a new CalCalendar object.
+ (id)calendar
A newly created and initialized CalCalendar object.
CalCalendar.hThe type of calendar.
extern NSString * const CalCalendarTypeBirthday; extern NSString * const CalCalendarTypeCalDAV; extern NSString * const CalCalendarTypeLocal; extern NSString * const CalCalendarTypeSubscription; extern NSString * const CalCalendarTypeIMAP;
CalCalendarTypeBirthdayAn birthday calendar maintained by Address Book.
Available in Mac OS X v10.5 and later.
Declared in CalCalendar.h
CalCalendarTypeCalDAVA CalDAV server calendar.
Available in Mac OS X v10.5 and later.
Declared in CalCalendar.h
CalCalendarTypeLocalA local calendar that may be synced over .Mac.
Available in Mac OS X v10.5 and later.
Declared in CalCalendar.h
CalCalendarTypeSubscriptionA subscribed calendar.
Available in Mac OS X v10.5 and later.
Declared in CalCalendar.h
CalCalendarTypeIMAPAn IMAP calendar.
Available in Mac OS X v10.5 and later.
Declared in CalCalendar.h
CalendarStore/CalCalendar.h
Last updated: 2007-07-08