Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

CalTaskMBS class

Super class: CalCalendarItemMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The class for tasks in iCal.
dim calStore as new CalCalendarStoreMBS
dim err as NSErrorMBS ' needed for the error details
dim newTask as new CalTaskMBS ' create a new reminder

// find existign tasks
dim tasks() as CalTaskMBS = calStore.tasks

// set properties
newTask.Title="new reminder"
newTask.DueDate=new date

newTask.calendar = tasks(0).calendar ' add to first List of reminders

call calStore.saveTask(newTask,err) ' save reminder
if err<>nil then
MsgBox err.localizedDescription
MsgBox "New reminder was created."
end if
Requires Mac OS X 10.5 to work.
Subclass of the CalCalendarItemMBS class.

Feedback, Comments & Corrections

Super class CalCalendarItemMBS

This class has no sub classes.

Some methods using this class:

Some examples which use this class:

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

CalRecurrenceRuleMBS   -   CanvasGesturesMBS

The biggest plugin in space...

MBS Xojo Plugins