Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/CalendarStore.framework |
Availability | Available in Mac OS X v10.5 and later. |
Companion guide | |
Declared in | CalRecurrenceRule.h |
CalRecurrenceEnd
objects are used to describe a property of CalRecurrenceRule
objects that defines how long a recurrence is scheduled to repeat.
You can create a recurrence end either using the recurrenceEndWithEndDate:
method specifying the date after which the event no longer repeats, or using the recurrenceEndWithOccurrenceCount:
method specifying the number of times it should repeat.
usesEndDate
property
endDate
property
occurrenceCount
property
For more about Objective-C properties, see “Properties” in The Objective-C 2.0 Programming Language.
The end date if the recurrence uses an end date value; nil
if it uses an occurrence count.
@property(readonly) NSDate *endDate;
CalRecurrenceRule.h
The occurrence count—number of times an event repeats—if the recurrence uses a number value; 0
if it uses an end date.
@property(readonly) NSUInteger occurrenceCount;
CalRecurrenceRule.h
YES
if the recurrence uses an end date; NO
if it uses a occurrence count.
@property(readonly) BOOL usesEndDate;
CalRecurrenceRule.h
Creates and returns a newly allocated CalRecurrenceEnd
object with the specified end date.
+ (id)recurrenceEndWithEndDate:(NSDate *)endDate
The date a recurring event should end. Raises an exception if you pass nil
.
A newly allocated CalRecurrenceEnd
object.
CalRecurrenceRule.h
Creates and returns a newly allocated CalRecurrenceEnd
object with the specified recurrence count.
+ (id)recurrenceEndWithOccurrenceCount:(NSUInteger)occurrenceCount
The number of times a recurring event should repeat. Raises an exception if you pass 0
or a negative number.
A newly allocated CalRecurrenceEnd
object.
CalRecurrenceRule.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-07-08)