CalCalendarStoreMBS 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

CalCalendarStoreMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This item is deprecated and should no longer be used. You can use EKEventStoreMBS instead.
The class for the calendar storage.
Example
// init
dim s as new CalCalendarStoreMBS

// find calendar by name
dim myCalendar as CalCalendarMBS
dim calendars() as CalCalendarMBS = s.calendars

for each ca as CalCalendarMBS in calendars
if ca.Title = "Private Events" then
myCalendar=ca
exit
end if
next

// Get date range for today
dim Startdate as new date
dim Enddate as new date

Startdate.hour = 0
Startdate.Minute = 0
Startdate.Second = 0

Enddate.hour = 23
Enddate.minute = 59
Enddate.second = 59

// Query events on this calendar
dim events() as CalEventMBS = s.events(Startdate,Enddate, myCalendar)

// Display result
dim lines(-1) as string
for each e as CalEventMBS in events
lines.Append e.Title
next

MsgBox Join(lines,EndOfLine)

Requires Mac OS X 10.5 to work.

Calendar saving and modification errors:

CalCalendarNotEditableError= 1025Events and tasks cannot be added to an uneditable calendar
CalDateInvalidError= 1026The start date of an event must be earlier than its end date
CalCalendarNotInRepository= 1027Events' and tasks' calendar property must be a calendar in the user's calendar store
CalCalendarTitleNotUniqueError= 1028Calendar titles must be unique

And the domain for the errors is: CalCalendarStoreErrorDomain

Constants

Constant Value Description
CalSpanAllEvents 2 One of the Calendar Span constants.
CalSpanFutureEvents 1 One of the Calendar Span constants.
CalSpanThisEvent 0 One of the Calendar Span constants.

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


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


CalCalendarMBS   -   CalEventMBS


💬 Ask a question or report a problem