Instance Method


Add a process object as a child of a progress tree. The inUnitCount indicates the expected work for the progress unit.


- (void)addChild:(NSProgress *)child withPendingUnitCount:(int64_t)inUnitCount;



The NSProgress instance to add to the progress tree.


The number of units of work to be carried out by the new child.


The child will be assigned a portion of the receivers total unit count based on inUnitCount. For more information, see Creating a Tree of Progress Objects.

See Also

Current Progress Object

+ currentProgress

Returns the NSProgress instance, if any, associated with the current thread by a previous invocation of becomeCurrentWithPendingUnitCount:.

- becomeCurrentWithPendingUnitCount:

Sets the receiver as the current progress object of the current thread and specifies the portion of work to be performed by the next child progress object of the receiver.

- resignCurrent

Balance the most recent previous invocation of becomeCurrentWithPendingUnitCount: on the same thread by restoring the current progress object to what it was before becomeCurrentWithPendingUnitCount: was invoked.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software