CalRecurrenceRuleMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
CalRecurrenceRuleMBS class Deprecated
The class for the recurrence rules.
Example
// start a connection to the calendar database dim s as new CalCalendarStoreMBS // needed for the error details dim e as NSErrorMBS dim r as CalRecurrenceRuleMBS = CalRecurrenceRuleMBS.initYearlyRecurrence(1 , nil ) // repeat every year without end dim a as new CalAlarmMBS // add alarm a.action = a.CalAlarmActionDisplay a.relativeTrigger = -3600 *24 // 24 Hours before // create a new calendar dim c as new CalEventMBS dim d as new date(2011 , 04 , 20 ) // the date // set properties dim calendars() as CalCalendarMBS = s.calendars c.Title="Test Birthday" c.startDate=d c.recurrenceRule = r c.calendar=calendars(1 ) // add to second calendar c.addAlarm(a) c.endDate = d c.isAllDay = true // save event call s.saveEvent(c,s.CalSpanAllEvents, e)if e<>nil then MsgBox e.localizedDescriptionelse MsgBox "New event was created." end if
Requires Mac OS X 10.5 to work.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
5 properties
5 methods
9 shared methods
shared method initDailyRecurrence (interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initMonthlyRecurrence (interval as Integer, DayOfTheWeek as Integer, WeekOfTheMonth as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initMonthlyRecurrence (interval as Integer, DaysOfTheMonth() as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initMonthlyRecurrence (interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initWeeklyRecurrence (interval as Integer, DaysOfTheWeek() as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initWeeklyRecurrence (interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initYearlyRecurrence (interval as Integer, DayOfTheWeek as Integer, WeekOfTheMonth as Integer, MonthsOfTheYear() as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initYearlyRecurrence (interval as Integer, MonthsOfTheYear() as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
shared method initYearlyRecurrence (interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS ) as CalRecurrenceRuleMBS
4 constants
Constants
Constant
Value
Description
CalRecurrenceDaily
0
One of the recurrence type constants.
CalRecurrenceMonthly
2
One of the recurrence type constants.
CalRecurrenceWeekly
1
One of the recurrence type constants.
CalRecurrenceYearly
3
One of the recurrence type constants.
This class has no sub classes.
Some properties using for this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin .
CalRecurrenceEndMBS
-
CalTaskMBS