Platforms to show: All Mac Windows Linux Cross-Platform

Back to CalRecurrenceRuleMBS class.

CalRecurrenceRuleMBS.initDailyRecurrence(interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Daily Recurrence initializer.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

CalRecurrenceRuleMBS.initMonthlyRecurrence(interval as Integer, DayOfTheWeek as Integer, WeekOfTheMonth as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Monthly Recurrence initializer.

This initializer allows the client to specify a repeating monthly pattern in terms of a day of the week and a week of the month that the even repeats. An example is an event that recurs the first Monday of every month.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

Valid values for days of the week are integers 1-7, which correspond to days of the week with Sunday = 1.
Valid values for weeks of the month are integers 1-4 and -1, which is used to indicate the last week of the month.

See also:

CalRecurrenceRuleMBS.initMonthlyRecurrence(interval as Integer, DaysOfTheMonth() as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Monthly Recurrence initializer.

This initializer allows the client to specify multiple days of the month that an event will recur. This method should be used to initialize events that occur more than once a month, in a set monthly pattern.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

Valid values for days of the month are integers 1-31.

See also:

CalRecurrenceRuleMBS.initMonthlyRecurrence(interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Monthly Recurrence initializer.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

See also:

CalRecurrenceRuleMBS.initWeeklyRecurrence(interval as Integer, DaysOfTheWeek() as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Weekly Recurrence initializers.

This initializer allows the client to specify multiple days of the week that an event will recur. This initializer should be used to initialize events that occur more than once a week, in a set weekly pattern.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

Valid values for days of the week are integers 1-7, which correspond to days of the week with Sunday = 1.

See also:

CalRecurrenceRuleMBS.initWeeklyRecurrence(interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Weekly Recurrence initializers.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

See also:

CalRecurrenceRuleMBS.initYearlyRecurrence(interval as Integer, DayOfTheWeek as Integer, WeekOfTheMonth as Integer, MonthsOfTheYear() as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Yearly Recurrence initializer.

This initializer allows the client to specify multiple months of the year that an event will recur. This method should be used to initialize events that recur on the same day of the week, in the same week of a month, of possibly more than one month a year, in a set yearly pattern. An example is an event that occurs every year on the last Friday of sixth and twelfth months.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

Valid values for days of the week are integers 1-7, which correspond to days of the week with Sunday = 1.
Valid values for weeks of the month are integers 1-4 and -1, which is used to indicate the last week of the month.
Valid values for months of the year are integers 1-12, which correspond to months of the year with January = 1.

See also:

CalRecurrenceRuleMBS.initYearlyRecurrence(interval as Integer, MonthsOfTheYear() as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Yearly Recurrence initializer.

This initializer allows the client to specify multiple months of the year that an event will recur. This method should be used to initialize events that occur on the same date, in more than month a year, in a set monthly pattern. An example is an event that occurs every year on the first day of the first and seventh months.

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

Valid values for months of the year are integers 1-12, which correspond to months of the year with January = 1.

See also:

CalRecurrenceRuleMBS.initYearlyRecurrence(interval as Integer, RecurrenceEnd as CalRecurrenceEndMBS) as CalRecurrenceRuleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Yearly Recurrence initializer.
Example
// create a recurrence event:

dim c as new CalCalendarStoreMBS
dim e as new CalEventMBS
dim error as NSErrorMBS
dim s as string
dim ed as new date
dim rule as CalRecurrenceRuleMBS
dim rend as CalRecurrenceEndMBS

ed.day=21
ed.Month=7
ed.Year=2008

e.endDate=ed

dim sd as new date

sd.day=18
sd.Month=7
sd.Year=2008

e.startDate=sd
e.isAllDay=true
e.location="Example Location"

rule=CalRecurrenceRuleMBS.initYearlyRecurrence(1,nil)

dim calendars() as CalCalendarMBS = c.calendars
e.Title="Example Title"
e.calendar=calendars(0) // pick first calendar
e.notes="Example Notes"
e.URL="http://www.monkeybreadsoftware.de"
e.recurrenceRule=rule


if c.saveEvent(e, c.CalSpanAllEvents, error) then
if error<>Nil then s=error.localizedDescription
MsgBox "OK"+EndOfLine+s
else
if error<>Nil then s=error.localizedDescription
MsgBox "Failed"+EndOfLine+s
end if

Two parameters are included in every CalRecurrenceRule initializer. The first is the interval, which is described above and indicates how many CalRecurrenceTypes make up the period of the recurrence (every week, every other week, etc.). The second is a CalRecurrenceEnd, which describes when the CalRecurrenceRule ends. If valid values for these two parameters are not included, nil is returned. There are simple initializers for each CalRecurrenceType which take only these two parameters.

See also:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...