totalUnitCount
completedUnitCount
localizedDescription
localizedAdditionalDescription
cancelled
cancellationHandler
pausable
paused
pausingHandler
Availability 有効性
Technology
@property(getter=isCancellable) BOOL cancellable;
By default, NSProgress
objects are cancelable.
You typically use this property to communicate whether controls for canceling appear in a progress-reporting user interface. NSProgress
itself doesn’t do anything with this property other than help pass the value from progress reporters to progress observers.
If an NSProgress
is cancelable, implement the ability to cancel progress either by setting a block for the cancellation
property, or by polling the cancelled
property periodically while performing the relevant work.
It’s valid for the value of this property to change during the lifetime of an NSProgress
object. By default, NSProgress
is KVO-compliant for this property. It sends notifications on the same thread that updates the property.
totalUnitCount
completedUnitCount
localizedDescription
localizedAdditionalDescription
cancelled
cancellationHandler
pausable
paused
pausingHandler
- cancel