| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/CalendarStore.framework |
| Availability | Available in Mac OS X v10.5 and later.
|
| Companion guide | |
| Declared in | CalCalendarItem.h |
CalCalendarItem is an abstract superclass for CalEvent and CalTask objects. It provides common properties for its subclasses such as the title and associated calendar object of a calendar item. You do not create CalCalendarItem objects directly. Use the CalCalendarStore methods to fetch events and tasks. When you have a CalCalendarItem object you can add and remove alarms using the methods listed in “Setting Alarms.”
calendar property
notes property
url property
title property
uid property
dateStamp property
alarms property
For more about Objective-C properties, see “Properties” in The Objective-C 2.0 Programming Language.
An array containing the calendar item’s alarm objects—an array of CalAlarm objects.
@property(copy) NSArray *alarms;
CalCalendarItem.hThe associated calendar object for the calendar item.
@property(retain) CalCalendar *calendar;
An error occurs if you attempt to save a calendar item without first setting the calendar property.
CalCalendarItem.hThe date the calendar item was last modified (not the same as the date is was last synced). This property is read-only.
@property(readonly) NSDate *dateStamp;
CalCalendarItem.hThe notes about the calendar item.
@property(copy) NSString *notes;
CalCalendarItem.hThe title of the calendar item.
@property(copy) NSString *title;
CalCalendarItem.hThe calendar item’s unique identifier. This property is read-only.
@property(readonly) NSString *uid;
CalCalendarItem.hThe URL for the calendar item.
@property(copy) NSURL *url;
CalCalendarItem.hAdds an alarm to the receiver.
- (void)addAlarm:(CalAlarm *)alarm
The alarm to add.
CalCalendarItem.hAdds the alarms contained in an array to the receiver.
- (void)addAlarms:(NSArray *)alarms
An array of CalAlarm objects to add.
CalCalendarItem.hReturns whether or not the receiver has an alarm.
- (BOOL)hasAlarm
YES if the receiver has an alarm; otherwise, NO.
CalCalendarItem.hReturns the date of the next alarm.
- (NSDate *)nextAlarmDate
The date the next alarm triggers.
CalCalendarItem.hRemoves the specified alarm from the receiver.
- (void)removeAlarm:(CalAlarm *)alarm
The alarm to remove.
CalCalendarItem.hRemoves the alarms contained in an array from the receiver.
- (void)removeAlarms:(NSArray *)alarms
An array of CalAlarm objects to remove.
CalCalendarItem.h
Last updated: 2007-07-08