Platforms to show: All Mac Windows Linux Cross-Platform

CalEventMBS.endDate as date
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The end date.
Example:
dim e as CalEventMBS
msgbox e.endDate.longdate+" "+e.endDate.longtime
Notes:
The client is responsible for making sure they never attempt to save an event with a start date that occurs after the endDate, or an endDate that occurs before the startDate. Calling saveEvent: on an improperly configured event will fail.
(Read and Write property)

Feedback, Comments & Corrections

CalEventMBS.isAllDay as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Whether this event is all day.
Notes:
True for all day events.
(Read and Write property)

Feedback, Comments & Corrections

CalEventMBS.isDetached as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: Whether this event is detached.
Notes:
These properties are only meaningful for CalEvents which are instances of a repeating event.

If this CalEvent is an instance of a repeating event, and an attribute of this CalEvent has been changed to from the default value generated by the repeating event, isDetached will return true. If the CalEvent is unchanged from its default state, or is not a repeating event, isDetached returns false.
(Read only property)

Feedback, Comments & Corrections

CalEventMBS.location as string
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The location of this event.
Example:
dim c as new CalCalendarStoreMBS

// set the date range where we look for event
dim sd as new date(2016,6,7,0,0,0)
dim ed as new date(2016,6,7,23,59,59)

// look for an event on that date
dim a() as CalEventMBS = c.events(sd,ed, c.calendars)
dim e as CalEventMBS = a(1)

// show location
MsgBox e.location

// change it
e.location = "Hamburg"

// check again
MsgBox e.location

// Save
dim error as NSErrorMBS
dim ok as Boolean = c.saveEvent(e, c.CalSpanThisEvent, error)

if ok then
MsgBox "OK"
elseif error <> nil then
MsgBox error.LocalizedDescription
else
MsgBox "Failed."
end if
Notes: (Read and Write property)

Feedback, Comments & Corrections

CalEventMBS.occurrence as date
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The ocurrences of this event.
Notes:
These properties are only meaningful for CalEvents which are instances of a repeating event.

Returns the occurrence date of a CalEvent. Since all instances of a repeating event have the same UID, we need another way to differentiate between those CalEvents. This method returns the NSDate on which this event was originally scheduled to occur. This value will remain the same even if the event has been detached and its start date has changed. For CalEvents not part of a repeating pattern, this method will return the same value as startDate.
(Read only property)

Feedback, Comments & Corrections

CalEventMBS.recurrenceRule as CalRecurrenceRuleMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The recurrence rule for this event.
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
Notes:
Set to nil to remove recurrence rule.
(Read and Write property)

Feedback, Comments & Corrections

CalEventMBS.startDate as date
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The start date.
Example:
dim e as CalEventMBS
msgbox e.startDate.longdate+" "+e.startDate.longtime
Notes:
The client is responsible for making sure they never attempt to save an event with a start date that occurs after the endDate, or an endDate that occurs before the startDate. Calling saveEvent: on an improperly configured event will fail.
(Read and Write property)

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo PDF Plugins

Start Chat