Utilities

  • A subclass of NSProgress which simplifies the management of children.

    There are 2 major advantages that ZDCProgress has over NSProgress.

    1. It allows children to be removed. Many networking operations within the framework gracefully recover from temporary networking failures. In order to properly maintain the progress, this involves removing progress children from the tree.

    2. It optionally allows children to control their pendingUnitCount within the parent. This is useful when it’s preferred that the parent’s totalUnitCount matches the sum of the children’s totalUnitCount. (i.e. for proper reporting of bytes downloaded)

    See

    NSProgress
    See more

    Declaration

    Objective-C

    @interface ZDCProgress : NSProgress

    Swift

    class ZDCProgress : Progress
  • This class helps to manage a list of tuples that need to be invoked upon the completion of some asynchronous task.

    In addition to storing the array of tuples, this class provides the tools needed to atomically manage the array.

    See more

    Declaration

    Objective-C

    @interface ZDCAsyncCompletionDispatch : NSObject

    Swift

    class ZDCAsyncCompletionDispatch : NSObject