Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKOperationMBS class.

CKOperationMBS.cancel

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 17.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Advises the operation object that it should stop executing its task.

This method does not force your operation code to stop. The code for your operation must invoke the isCancelled method periodically to determine whether the operation should be stopped. Once cancelled, an operation cannot be restarted.

If the operation is already finished executing, this method has no effect. Canceling an operation that is currently in an operation queue, but not yet executing, causes it to be removed from the queue (although not necessarily right away).

CKOperationMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

CKOperationMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 21.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Destructor

CKOperationMBS.isCancelled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 17.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value indicating whether the operation has been cancelled.

True if the operation was explicitly cancelled by an invocation of the operation's cancel method; otherwise, false. This method may return true even if the operation is currently executing.

Discussion
Canceling an operation does not actively stop the operation's code from executing. An operation object is responsible for calling this method periodically and stopping itself if the method returns true.

CKOperationMBS.isExecuting as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 17.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value indicating whether the operation is currently executing.

True if the operation is executing; otherwise, false if the operation has not been started or is already finished.

CKOperationMBS.isFinished as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 17.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A Boolean value indicating whether the operation is done executing.

True if the operation is no longer executing; otherwise, false.

CKOperationMBS.start

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 17.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Begins the execution of the operation.

The default implementation of this method configures the execution environment for a non-concurrent operation and invokes the operation's main method. As part of the default configuration, this method performs several checks to ensure that the non-concurrent operation can actually run and generates appropriate KVO notifications for each change in the operation's state. If the operation's operation has already been performed, was cancelled, or is not yet ready to run, this method throws an NSInvalidArgumentException exception. If the operation is to be performed on a separate thread, this method may return before the operation itself completes on the other thread.

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


The biggest plugin in space...