Platforms to show: All Mac Windows Linux Cross-Platform
Back to CKOperationMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CloudKit | MBS Mac64bit Plugin | 17.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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).
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CloudKit | MBS Mac64bit Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CloudKit | MBS Mac64bit Plugin | 21.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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 |
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 |
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 |
True if the operation is no longer executing; otherwise, false.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CloudKit | MBS Mac64bit Plugin | 17.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
